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

Question about code #76

Open
Lucky-Lance opened this issue Mar 6, 2024 · 0 comments
Open

Question about code #76

Lucky-Lance opened this issue Mar 6, 2024 · 0 comments

Comments

@Lucky-Lance
Copy link

Lucky-Lance commented Mar 6, 2024

Hi, I have a question about the code. The code here includes a view operation, but view is not an in-place operation in pytorch. An example is shown below, where I use 1.13.1+cu117.

image

I am confused. Would you please explain the utility of the view operation here? I think this line is unnecessary.

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

1 participant