Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run test.py #9

Open
vamderboom opened this issue Dec 29, 2023 · 1 comment
Open

run test.py #9

vamderboom opened this issue Dec 29, 2023 · 1 comment

Comments

@vamderboom
Copy link

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

@yydlmzyz
Copy link
Collaborator

Hi, this may be related to the version of pytorch, you can try to convert 'int' to 'tensor' by 'torch.Tensor()'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants