Reputation: 1411
I try to pass torch.max()
return type (torch.return_types.max
) as argument to function torch.tile()
:
torch.tile(torch.max(x), (1, 1, 1, 5))
The error is: TypeError: tile(): argument 'input' (position 1) must be Tensor, not torch.return_types.max
.
How can I convert torch.return_types.max
to Tensor
? Maybe I should use another function to find maximum in Tensor?
Upvotes: 3
Views: 4435