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

pytorch的reshape 不是torch.Tensor下的op #76

Closed
lsydd opened this issue Nov 17, 2020 · 1 comment
Closed

pytorch的reshape 不是torch.Tensor下的op #76

lsydd opened this issue Nov 17, 2020 · 1 comment

Comments

@lsydd
Copy link

lsydd commented Nov 17, 2020

应该直接用

raw_reshape = torch.reshape
torch.reshape = _reshape

进行hook.

@msnh2012
Copy link
Owner

两种都可以, 多谢issue

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

No branches or pull requests

2 participants