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

'NTM' object has no attribute '_max_length' #20

Closed
linamede opened this issue Nov 22, 2016 · 2 comments
Closed

'NTM' object has no attribute '_max_length' #20

linamede opened this issue Nov 22, 2016 · 2 comments

Comments

@linamede
Copy link

linamede commented Nov 22, 2016

Trying to train the model, it begins well but after a while it shows the error
'NTM' object has no attribute '_max_length'

[] Building a NTM model
Percent: [####################] 100.00% Finished.
[
] Building a loss model for seq_length 1
[] Building a loss model for seq_length 2
[
] Building a loss model for seq_length 3
[] Building a loss model for seq_length 4
[
] Building a loss model for seq_length 5
[] Building a loss model for seq_length 6
[
] Building a loss model for seq_length 7
[] Building a loss model for seq_length 8
[
] Building a loss model for seq_length 9
[] Building a loss model for seq_length 10
[
] Build a NTM model finished
[] Initialize all variables
[
] Initialization finished
[*] Reading checkpoints...
Traceback (most recent call last):
File "main.py", line 72, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "main.py", line 55, in main
task.train(ntm, FLAGS, sess)
File "/home/lina/deep_learning_frameworks/NTM-tensorflow/tasks/copy.py", line 73, in train
ntm.load(config.checkpoint_dir, config.task, strict=config.continue_train is True)
File "/home/lina/deep_learning_frameworks/NTM-tensorflow/ntm.py", line 260, in load
task_dir = "%s_%s" % (task_name, self._max_length)
AttributeError: 'NTM' object has no attribute '_max_length'

@ruizhaogit
Copy link

I have the same error. Does Anyone get a clue?

@carpedm20
Copy link
Owner

Fixed with 3ebe24a.

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

3 participants