carpedm20 / carpedm20/variational-text-tensorflow
TypeError: 'module' object is not callable
- Dominant language
- Python
- Stars
- 535
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with main.py, especially the call at line 39, and reproduce the traceback using `python main.py --data ptb`. Trace the object passed or invoked there and confirm the expected callable, then verify that the PTB run proceeds past dataset loading without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100