docs: the key output -> logits

pull/2274/head
gaotingquan 2022-03-16 11:25:08 +00:00 committed by Tingquan Gao
parent 4ee1d89a0e
commit 8db8f2cf3f
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ print("The result returned by update_res(): ", res)
output = net(pd_input)
print("The output's keys of processed net: ", output.keys())
# The output's keys of net: dict_keys(['output', 'blocks[0]', 'blocks[2]', 'blocks[4]', 'blocks[10]'])
# 网络前向输出 output 为 dict 类型对象其中output["output"] 为网络最终输出output["blocks[0]"] 等为网络中间层输出结果
# The output's keys of net: dict_keys(['logits', 'blocks[0]', 'blocks[2]', 'blocks[4]', 'blocks[10]'])
# 网络前向输出 output 为 dict 类型对象其中output["logits"] 为网络最终输出output["blocks[0]"] 等为网络中间层输出结果
```
除了通过调用方法 `update_res()` 的方式之外,也同样可以在实例化网络对象时,通过指定参数 `return_patterns` 实现相同效果: