iamaaditya / neural-paraphrase-generation

Neural Paraphrase Generation
179 stars 57 forks source link

ValueError: model_fn #3

Closed SeekPoint closed 6 years ago

SeekPoint commented 6 years ago

python train.py --use_residual_lstm INFO:tensorflow:Using default config. INFO:tensorflow:Using config: {} Traceback (most recent call last): File "train.py", line 47, in tf.app.run() File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "train.py", line 43, in main estimator = tf.estimator.Estimator(model_fn=model.make_graph, model_dir=FLAGS.model_dir, params=FLAGS) File "/Library/Python/2.7/site-packages/tensorflow/python/estimator/estimator.py", line 149, in init _verify_model_fn_args(model_fn, params) File "/Library/Python/2.7/site-packages/tensorflow/python/estimator/estimator.py", line 722, in _verify_model_fn_args (model_fn, non_valid_args)) ValueError: model_fn (<bound method Seq2seq.make_graph of <seq2seq.Seq2seq instance at 0x112d3d638>>) has following not expected args: ['self']

iamaaditya commented 6 years ago

What is Tensorflow version?

On Mon, Oct 30, 2017, 11:41 PM yk_data notifications@github.com wrote:

python train.py --use_residual_lstm INFO:tensorflow:Using default config. INFO:tensorflow:Using config: {} Traceback (most recent call last): File "train.py", line 47, in tf.app.run() File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "train.py", line 43, in main estimator = tf.estimator.Estimator(model_fn=model.make_graph, model_dir=FLAGS.model_dir, params=FLAGS) File "/Library/Python/2.7/site-packages/tensorflow/python/estimator/estimator.py", line 149, in init _verify_model_fn_args(model_fn, params) File "/Library/Python/2.7/site-packages/tensorflow/python/estimator/estimator.py", line 722, in _verify_model_fn_args (model_fn, non_valid_args)) ValueError: model_fn (<bound method Seq2seq.make_graph of <seq2seq.Seq2seq instance at 0x112d3d638>>) has following not expected args: ['self']

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iamaaditya/neural-paraphrase-generation/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AB008pW7TKLIM0RqiXUekwr--FG6Skvqks5sxpbYgaJpZM4QMKeU .

--

Thanks and Regards Adi

SeekPoint commented 6 years ago

what's the correct tf version?

iamaaditya commented 6 years ago

TF 1.3

SeekPoint commented 6 years ago

it works now