SyntaxFix
Write A Post
Hire A Developer
Questions
Previous answers got you list of torch.Size Here is how to get list of ints
listofints = [int(x) for x in tensor.shape]