Skip to content

Commit

Permalink
docs: the key output -> logits
Browse files Browse the repository at this point in the history
  • Loading branch information
TingquanGao committed Sep 5, 2022
1 parent 4ee1d89 commit 8db8f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/zh_CN/advanced_tutorials/theseus_layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 实现相同效果:
Expand Down

0 comments on commit 8db8f2c

Please sign in to comment.