-
Notifications
You must be signed in to change notification settings - Fork 760
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
refine pow module and its test #5319
Conversation
@@ -1013,8 +1013,18 @@ def forward(self, x, y): | |||
@experimental_api | |||
def pow_op(tensor, exponent): | |||
r"""Takes the power of each element in input with exponent and returns a tensor with the result. | |||
exponent can be either a single float number or a single int number. | |||
|
|||
exponent can be either a single float number, a single int number, or a tensor with the same shape as input. |
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.
需要在 PR 的 description 里附上 docstring 编译后的截图(顺便也检查了编译文档时有否warning,现在文档编译有warning也是不能通过CI测试的)
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.
加上了
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.
呃……还是不符合要求。你可以参考下已经合并的PR,比如这个 #5101
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.
好的
doctest:
docstring: