Texonom
Texonom
/
Engineering
Engineering
/Data Engineering/Artificial Intelligence/AI Development/AI Framework/Pytorch/Pytorch Grammar/torch.Tensor/
torch Tensor.view()
Search

torch Tensor.view()

Creator
Creator
Seonglae Cho
Created
Created
2023 Apr 11 14:4
Editor
Editor
Seonglae Cho
Edited
Edited
2024 May 25 4:49
Refs
Refs
torch Tensor.reshape()
share memory space so input should contiguous
 
 
 
 

-1 means auto infer

What does -1 mean in pytorch view?
As the question says, what does -1 do in pytorch view? >>> a = torch.arange(1, 17) >>> a tensor([ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 1...
What does -1 mean in pytorch view?
https://stackoverflow.com/questions/50792316/what-does-1-mean-in-pytorch-view/50793899#50793899
What does -1 mean in pytorch view?
torch.Tensor.view — PyTorch 2.0 documentation
torch.Tensor.view — PyTorch 2.0 documentation
https://pytorch.org/docs/stable/generated/torch.Tensor.view.html
 
 
 

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Data Engineering/Artificial Intelligence/AI Development/AI Framework/Pytorch/Pytorch Grammar/torch.Tensor/
torch Tensor.view()
Copyright Seonglae Cho