UGATIT-pytorch icon indicating copy to clipboard operation
UGATIT-pytorch copied to clipboard

var(): argument 'dim' must be int, not list

Open dxm343488059 opened this issue 5 years ago • 1 comments

torch.mean(input, dim=[2, 3], keepdim=True), torch.var(input, dim=[2, 3], keepdim=True)

Modify the code so that it resembles the following code sample:

torch.mean(torch.mean(input, dim=2, keepdim=True), dim=3, keepdim=True), torch.var(torch.var(input, dim=2, keepdim=True), dim=3, keepdim=True)

dxm343488059 avatar Nov 14 '19 09:11 dxm343488059

It works, thanks a lot. The problem seems to be that version of pytorch is too old.

AstomMars avatar Jan 07 '20 07:01 AstomMars