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

Assertion Error #52

Open
mcbrs1a opened this issue Nov 27, 2017 · 1 comment
Open

Assertion Error #52

mcbrs1a opened this issue Nov 27, 2017 · 1 comment

Comments

@mcbrs1a
Copy link

mcbrs1a commented Nov 27, 2017

I can get Breakout to play succesfully, pong however gives me this, any suggestions?

./play.sh snapshots/pong_141.pkl --replay_size 10 --backend cpu

2017-11-27 13:08:31,419 Using old model serialization format. Serialized the model into new format
Traceback (most recent call last):
File "src/main.py", line 117, in
net.load_weights(args.load_weights)
File "/home/putz/neon/simple_dqn/src/deepqnetwork.py", line 189, in load_weights
self.model.load_params(load_path)
File "/home/putz/neon/neon/models/model.py", line 418, in load_params
self.deserialize(load_obj(param_path), load_states=load_states)
File "/home/putz/neon/neon/models/model.py", line 462, in deserialize
l.set_params(ps)
File "/home/putz/neon/neon/layers/layer.py", line 744, in set_params
attr.set(pdict['params'][key])
File "/home/putz/neon/neon/backends/nervanacpu.py", line 246, in set
assert value.size == self.size
AssertionError

@tambetm
Copy link
Owner

tambetm commented Nov 27, 2017

This might be caused by incompatibility between model format and newer Neon versions. Unfortunately I cannot help with this as I'm not actively working with this codebase any more. But you are welcome to submit PR.

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