Anyone tried the test code?
Hi there, I was trying to test if my pytorch is installed correctly on a CentOS-based server. I found there are a set of programs under test dir could do the job. But when I try to run run_test.sh, it always gives me the error message like: Anyone know what is going on here? I also tried on my mac, and everything works fine. Thanks!
cosmmb
what is the version of python on the machine, and how did you install pytorch (wheel or conda)?
smth
I use python 2.7 for both mac and centos. They are all installed with conda.
cosmmb
smth
thanks!
cosmmb
ohhh, i think i know what’s happening. <SCODE>git clone https://github.com/pytorch/pytorch
cd pytorch
git checkout v0.1.9
cd test
./run_test.sh
<ECODE>
smth
Thanks for your help! Now the error is gone.
cosmmb
<SCODE>ERROR: test_serialization_map_location (__main__.TestTorch)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_torch.py", line 2713, in test_serialization_map_location
    tensor = torch.load(test_file_path, map_location=map_location)
  File "/Users/Natsume/miniconda2/envs/dlnd-tf-lab/lib/python3.5/site-packages/torch/serialization.py", line 222, in load
    return _load(f, map_location, pickle_module)
  File "/Users/Natsume/miniconda2/envs/dlnd-tf-lab/lib/python3.5/site-packages/torch/serialization.py", line 370, in _load
    result = unpickler.load()
AttributeError: Can't get attribute '_rebuild_tensor' on <module 'torch._utils' from '/Users/Natsume/miniconda2/envs/dlnd-tf-lab/lib/python3.5/site-packages/torch/_utils.py'>

<ECODE> <SCODE>pytorch                   0.1.10                   py35_1    soumith
<ECODE> How should I solve this error? Thanks!
dl4daniel
you are trying to install pytorch via binaries, but run tests for master. See my comment above.
smth
The error is gone with the following method: I don’t why but there is no error this time. Thanks
dl4daniel
What if I installed PyTorch using Anaconda (Anaconda Navigator), how can I test the installation?
Royi