Open vamderboom opened 10 months ago
File "/coder.py", line 101, in encode self.coordinate_coder.encode((y.C//y.tensor_stride[0]).detach().cpu()[:,1:], postfix=postfix) TypeError: unsupported operand type(s) for //: 'Tensor' and 'int'
my pytorch==1.9,why tensor cant // int
Hi, this may be related to the version of pytorch, you can try to convert 'int' to 'tensor' by 'torch.Tensor()'.
File "/coder.py", line 101, in encode self.coordinate_coder.encode((y.C//y.tensor_stride[0]).detach().cpu()[:,1:], postfix=postfix) TypeError: unsupported operand type(s) for //: 'Tensor' and 'int'
my pytorch==1.9,why tensor cant // int