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

Encoding folder #13

Closed
vitiennam opened this issue Nov 19, 2017 · 3 comments
Closed

Encoding folder #13

vitiennam opened this issue Nov 19, 2017 · 3 comments
Labels

Comments

@vitiennam
Copy link

Hi,

Thank for your project. I have confuse with encoding folder in your project.
When I build setup.py, it run test.py in test folder and it will run function in encoding folder, but encoding folder in python3.5. It will have error and I do not understand why your project have encoding folder but it do not install in it:
Testing scaledL2(): True
Traceback (most recent call last):
File "test/test.py", line 88, in
test_encoding()
File "test/test.py", line 52, in test_encoding
test = gradcheck(layer, input, eps=1e-6, atol=1e-4)
File "/usr/local/lib/python3.5/dist-packages/torch/autograd/gradcheck.py", line 154, in gradcheck
output = func(*inputs)
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 224, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/encoding/nn/encoding.py", line 97, in forward
A = F.softmax(scaledL2(X, self.codewords, self.scale), dim=2)
TypeError: softmax() got an unexpected keyword argument 'dim'

Thanks

@zhanghang1989
Copy link
Owner

Your PyTorch is out of date. Please use master branch https://github.com/pytorch/pytorch

@vitiennam
Copy link
Author

Thanks for your support

@zhanghang1989
Copy link
Owner

I am closing it, but feel free to reopen if you still have troubles.

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

No branches or pull requests

2 participants