-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[SOT] Support .tolist()
in SOT Static Mode
#71201
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
[SOT] Support .tolist()
in SOT Static Mode
#71201
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
.tolist()
in SOT Static Mode
test/sot/test_18_tensor_method.py
Outdated
a.tolist(), | ||
a.numpy(), |
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.
这里有点多了,tolist
和 numpy
一定会 breakgraph,可以拆成两个,其它不会 breakgraph 的可以加个 check_no_breakgraph
确保不会 break
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.
test/dygraph_to_static/test_tensor_attr_consistency.py
里可以将 tolist
移除一下了
这个列表也可以关注下
.tolist()
in SOT Static Mode.tolist()
in SOT Static Mode
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.
.tolist()
in SOT Static Mode.tolist()
in SOT Static Mode
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
Currently,
.tolist()
method is not supported in SOT static mode.the code will raise:
Under @SigureMo ’s guidance, this PR implements
.tolist()
support, following a similar approach to the.numpy()
implementation.PCard-66972