Skip to content

Reshape also change the value? #303

Answered by nazarPuriy
UrDailyCs asked this question in Q&A
Discussion options

You must be logged in to vote

In general purposes there are the same. If want independent data add .clone() or multiply by .... = reshape(...)*1
https://stackoverflow.com/questions/49643225/whats-the-difference-between-reshape-and-view-in-pytorch

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mrdbourke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants