Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add field "prob" in paddle.infer #1780

Merged
merged 1 commit into from
Apr 13, 2017
Merged

add field "prob" in paddle.infer #1780

merged 1 commit into from
Apr 13, 2017

Conversation

luotao1
Copy link
Contributor

@luotao1 luotao1 commented Apr 13, 2017

  1. 增加paddle.infer接口中field的取值范围,在原来的"value", "id"上,另增加一个“prob”,用于beam_search和max_id的概率预测,即取出MaxIdLayer中的output_.in。
  2. 对应修改inference.py中的注释。

另外,“prob”和“value”之后可以都统一为“value”,需要修改RecurrentGradientMachine和AgentLayer的相关代码,因此会在以后的PR中完成。

@luotao1 luotao1 requested a review from reyoung April 13, 2017 06:32
@luotao1 luotao1 merged commit b25c512 into PaddlePaddle:develop Apr 13, 2017
@luotao1 luotao1 deleted the in branch April 13, 2017 07:27
heavengate pushed a commit to heavengate/Paddle that referenced this pull request Aug 16, 2021
* update v0.5 release note

* update some comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants