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.
I am confused. Would you please explain the utility of the view operation here? I think this line is unnecessary.
Hi, I have a question about the code. The code here includes a
view
operation, butview
is not an in-place operation in pytorch. An example is shown below, where I use1.13.1+cu117
.I am confused. Would you please explain the utility of the
view
operation here? I think this line is unnecessary.