Submitted by mishtimoi t3_xwfg83 in MachineLearning
chatterbox272 t1_ir8dz7e wrote
Reply to comment by suflaj in Time Complexity of Detach() in torch "[R]" by mishtimoi
Does detach make a copy? I thought it took a view (which is much cheaper as it only creates new metadata, but doesn't copy the underlying storage)
suflaj t1_ir9g78r wrote
It makes a copy of a tensor, but it is not a copy in memory, just a view. It copies the reference.
Viewing a single comment thread. View all comments