Hi,
I'm getting this error when I'm trying to run the code:
Tensorflow version :1.3.0
installed via Anaconda
Traceback (most recent call last):
File "main.py", line 39, in
tf.app.run()
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 35, in main
evaluate_addition()
File "/storage/workNPI/npi/tasks/addition/eval.py", line 32, in evaluate_addition
core = AdditionCore()
File "/storage/work/NPI/npi/tasks/addition/addition.py", line 38, in init
self.program_embedding = self.build_program_store()
File "/storage/work/NPI/npi/tasks/addition/addition.py", line 65, in build_program_store
CONFIG["PROGRAM_EMBEDDING_SIZE"], name="Program_Embedding")
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tflearn/layers/embedding_ops.py", line 70, in embedding
inference.seq_length = retrieve_seq_length_op(tf.reshape(incoming, shape))
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 2619, in reshape
name=name)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2632, in create_op
set_shapes_for_outputs(ret)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1911, in set_shapes_for_outputs
shapes = shape_func(op)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1861, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 595, in call_cpp_shape_fn
require_shape_fn)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 659, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimension size must be evenly divisible by 10 but is 1 for 'Reshape' (op: 'Reshape') with input shapes: [1,1], [4] and with input tensors computed as partial shapes: input[1] = [?,1,10,1].
Any idea how to solve this?
Thanks,
Hi,
I'm getting this error when I'm trying to run the code:
Tensorflow version :1.3.0
installed via Anaconda
Traceback (most recent call last):
File "main.py", line 39, in
tf.app.run()
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 35, in main
evaluate_addition()
File "/storage/workNPI/npi/tasks/addition/eval.py", line 32, in evaluate_addition
core = AdditionCore()
File "/storage/work/NPI/npi/tasks/addition/addition.py", line 38, in init
self.program_embedding = self.build_program_store()
File "/storage/work/NPI/npi/tasks/addition/addition.py", line 65, in build_program_store
CONFIG["PROGRAM_EMBEDDING_SIZE"], name="Program_Embedding")
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tflearn/layers/embedding_ops.py", line 70, in embedding
inference.seq_length = retrieve_seq_length_op(tf.reshape(incoming, shape))
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 2619, in reshape
name=name)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2632, in create_op
set_shapes_for_outputs(ret)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1911, in set_shapes_for_outputs
shapes = shape_func(op)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1861, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 595, in call_cpp_shape_fn
require_shape_fn)
File "/storage/work/anaconda2/envs/tensorflow-gpu/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 659, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimension size must be evenly divisible by 10 but is 1 for 'Reshape' (op: 'Reshape') with input shapes: [1,1], [4] and with input tensors computed as partial shapes: input[1] = [?,1,10,1].
Any idea how to solve this?
Thanks,