Skip to content

resnet_serialize_test failure on weight type #242

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

Open
jabowery opened this issue Apr 20, 2020 · 2 comments
Open

resnet_serialize_test failure on weight type #242

jabowery opened this issue Apr 20, 2020 · 2 comments

Comments

@jabowery
Copy link

jabowery commented Apr 20, 2020

The attached file is terminal output from a complete install (under Ubuntu 18.04 (bionic) with CUDA 10.2) as per README:

pip install -r requirements.txt
pip install -r requirements-dev.txt
python setup.py develop

At the end is the error, the complete error message:

E RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same

nupicresearchsetuperror.txt

@jabowery
Copy link
Author

The same test error arose after the alternate installation procedure:

conda env create

However, before I could get that installation procedure to run successfully, I had to do 4 things:

  1. Edit nupic.research/environment.yml to remove the version spec from grpcio>=1.24.3.
  2. Create and cd ${HOME}/nta
  3. git clone https://github.com/numenta/nupic.torch.git
  4. git clone https://github.com/numenta/nupic.tensorflow.git

@jabowery
Copy link
Author

Apparently, the input needs to be pushed to CUDA as well as the model. See:

https://discuss.pytorch.org/t/input-type-torch-floattensor-and-weight-type-torch-cuda-floattensor-should-be-the-same/48633

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

No branches or pull requests

1 participant