-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[ Dy2Static ] convert_call support staticmethod for class. #44983
[ Dy2Static ] convert_call support staticmethod for class. #44983
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
It is convenient to convert more dynamic graph codes into static graphs.
…static-staticmethod
loop_vars(list|tuple): A list or tuple of variables passed to ``cond`` and ``body`` . | ||
get_args(callable): Get all arguments that needed in true_fn and false_fn. | ||
set_args(callable): Update arguments that modified in trure_fn and false_fn. | ||
return_name_ids(list[string]): the returned names. |
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.
有默认值的参数是可选参数,应该备注 optional
return_name_ids(list[string])
--> return_name_ids(list[string], optional)
"Required input var should be 1-D Variable, but received {}". | ||
format(self.shape)) | ||
return self | ||
|
||
@static_only | ||
def pop(self, *args): | ||
""" | ||
**Notes**: |
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.
note 不用加粗,格式参考 注解
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 for docs
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
PR types
Others
PR changes
Others
Describe
convert_call support staticmethod for class.