-
Notifications
You must be signed in to change notification settings - Fork 678
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
[DOC] historgram code samples, test=develop #2732
[DOC] historgram code samples, test=develop #2732
Conversation
Thanks for your contribution! |
@@ -15,39 +15,19 @@ histogram | |||
|
|||
返回:直方图。 | |||
|
|||
返回类型:Variable,数据为int64类型,维度为(nbins,)。 | |||
返回类型:数据为int64类型,维度为(nbins,)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参数 Variable -> Tensor
不需要写返回类型 写在返回里,如
【返回:Tensor,数据为int64类型,xxxxxx】
print(np.array(res[0])) # [0, 3, 0, 2, 1] | ||
|
||
**代码示例2**: | ||
paddle.disable_static(paddle.CPUPlace()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
28 和 32 不需要了哈~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* add files * Update README.md * Update README.md * Update restapi.py pretrained=True and model.eval() are used by default when loading a model now, so no need to call them manually. * PEP8 reformat * PEP8 reformat Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Remove static sample:
Paddle PR: PaddlePaddle/Paddle#24912