Open peter6888 opened 6 years ago
still need to figure out how to fix below issue
INFO:tensorflow:Adding attention_decoder timestep 98 of 100
INFO:tensorflow:Adding attention_decoder timestep 99 of 100
Traceback (most recent call last):
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 686, in _call_cpp_shape_fn_impl
input_tensors_as_shapes, status)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimensions must be equal, but are 400 and 50000 for 'seq2seq/output_projection_paulus/mul_1' (op: 'Mul') with input shapes: [16,400], [16,50000].
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_summarization.py", line 347, in <module>
tf.app.run()
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "run_summarization.py", line 331, in main
setup_training(model, batcher)
File "run_summarization.py", line 171, in setup_training
model.build_graph() # build the graph
File "/Users/peli/forgit/nlp_project/src/model.py", line 440, in build_graph
self._add_seq2seq()
File "/Users/peli/forgit/nlp_project/src/model.py", line 289, in _add_seq2seq
vocab_dists, vocab_scores = self.caculate_baseline_dist(params)
File "/Users/peli/forgit/nlp_project/src/model.py", line 374, in _calc_baseline_dists_paulus
vocab_dist, vocab_score = tokenization(tokenization_params)
File "/Users/peli/forgit/nlp_project/src/token_generation_and_pointer.py", line 91, in tokenization
vocab_dists = tf.add(pointer * copy_distrubution, (1 - pointer) * vocab_distribution)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 894, in binary_op_wrapper
return func(x, y, name=name)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 1117, in _mul_dispatch
return gen_math_ops._mul(x, y, name=name)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 2726, in _mul
"Mul", x=x, y=y, name=name)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2958, in create_op
set_shapes_for_outputs(ret)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2209, in set_shapes_for_outputs
shapes = shape_func(op)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2159, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 627, in call_cpp_shape_fn
require_shape_fn)
File "/Users/peli/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 691, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimensions must be equal, but are 400 and 50000 for 'seq2seq/output_projection_paulus/mul_1' (op: 'Mul') with input shapes: [16,400], [16,50000].
Peters-MacBook-Pro:src peli$