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

I can't solve it #5

Open
kiki28 opened this issue Dec 11, 2018 · 4 comments
Open

I can't solve it #5

kiki28 opened this issue Dec 11, 2018 · 4 comments

Comments

@kiki28
Copy link

kiki28 commented Dec 11, 2018

(python352) C:\Users\ZQ>python
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import torch
print(torch.version)
0.3.1.post2
quit()

(python352) C:\Users\ZQ>python D:\soft_decision_tree\main.py
directory ./data already exists
Traceback (most recent call last):
File "D:\soft_decision_tree\main.py", line 53, in
transforms.Normalize((0.1307,), (0.3081,))
File "D:\Anaconda\envs\python352\lib\site-packages\torchvision\datasets\mnist.py", line 54, in init
os.path.join(self.root, self.processed_folder, self.training_file))
File "D:\Anaconda\envs\python352\lib\site-packages\torch\serialization.py", line 267, in load
return _load(f, map_location, pickle_module)
File "D:\Anaconda\envs\python352\lib\site-packages\torch\serialization.py", line 420, in _load
result = unpickler.load()
AttributeError: Can't get attribute '_rebuild_tensor_v2' on <module 'torch._utils' from 'D:\Anaconda\envs\python352\lib\site-packages\torch\_utils.py'>

@kimhc6028
Copy link
Owner

it seems like version of pytorch is unmatched.
pytorch/pytorch#5729
As I updated it to match up to pytorch 0.4.0, pull master branch again, and update pytorch to 0.4.0.

@kiki28
Copy link
Author

kiki28 commented Dec 23, 2018

I meet a new error.
save_result() missing 1 required positional argument: 'acc'

@kiki28 kiki28 closed this as completed Dec 23, 2018
@kiki28 kiki28 reopened this Dec 23, 2018
@kimhc6028
Copy link
Owner

@kiki28 Fixed the issue. Pull master again plz.

@kiki28
Copy link
Author

kiki28 commented Dec 24, 2018

No errors after running. And no result image.

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