Issue
I have tensor with dimension (210,2) using PyTorch. I want to convert it into (15,14,2). Anyone know how to do this? Thank you in advance
Solution
x = torch.randn(210, 2)
x = x.reshape(15,14,2)
Answered By - Karl
I have tensor with dimension (210,2) using PyTorch. I want to convert it into (15,14,2). Anyone know how to do this? Thank you in advance
x = torch.randn(210, 2)
x = x.reshape(15,14,2)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.