when i am running code by 'python main.py --data ptb',when i meet the problem ' TypeError: 'module' object is not callable', Could you help me ?
:~/variational-text$ python main.py --data ptb
{'checkpoint_dir': 'checkpoint',
'dataset': 'ptb',
'decay_rate': 0.96,
'decay_step': 10000,
'embed_dim': 500,
'forward_only': False,
'h_dim': 50,
'learning_rate': 0.001,
'max_iter': 450000,
'model': 'nvdm'}
./data/ptb
[] load ./data/ptb/vocab.pkl
[] load ./data/ptb/train.txt.npy
[] load ./data/ptb/valid.txt.npy
[] load ./data/ptb/test.txt.npy
Traceback (most recent call last):
File "main.py", line 53, in
tf.app.run()
File "/home/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "main.py", line 39, in main
checkpoint_dir=FLAGS.checkpoint_dir)
TypeError: 'module' object is not callable
when i am running code by 'python main.py --data ptb',when i meet the problem ' TypeError: 'module' object is not callable', Could you help me ? :~/variational-text$ python main.py --data ptb {'checkpoint_dir': 'checkpoint', 'dataset': 'ptb', 'decay_rate': 0.96, 'decay_step': 10000, 'embed_dim': 500, 'forward_only': False, 'h_dim': 50, 'learning_rate': 0.001, 'max_iter': 450000, 'model': 'nvdm'} ./data/ptb [] load ./data/ptb/vocab.pkl [] load ./data/ptb/train.txt.npy [] load ./data/ptb/valid.txt.npy [] load ./data/ptb/test.txt.npy Traceback (most recent call last): File "main.py", line 53, in
tf.app.run()
File "/home/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "main.py", line 39, in main
checkpoint_dir=FLAGS.checkpoint_dir)
TypeError: 'module' object is not callable