Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set att=True will cause : ValueError: Dimensions must be equal, but are 16 and 0 for 'quasi_conv1d_7_1/add_2' (op: 'Add') with input shapes: [16,150,320], [0,150,320]. #5

Open
SeekPoint opened this issue Aug 7, 2017 · 0 comments

Comments

@SeekPoint
Copy link

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 654, in _call_cpp_shape_fn_impl
input_tensors_as_shapes, status)
File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 89, in exit
next(self.gen)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimensions must be equal, but are 16 and 0 for 'quasi_conv1d_7_1/add_2' (op: 'Add') with input shapes: [16,150,320], [0,150,320].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train.py", line 370, in
main();
File "train.py", line 355, in main
g = Graph();
File "train.py", line 273, in init
.sg_quasi_conv1d(is_enc=False, size=2))
File "/usr/local/lib/python3.6/site-packages/sugartensor/sg_main.py", line 264, in wrapper
out = func(tensor, opt)
File "train.py", line 127, in sg_quasi_conv1d
O = H.sg_aconv1d() + H_o # (16, 150, 320)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py", line 865, in binary_op_wrapper
return func(x, y, name=name)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py", line 82, in add
result = _op_def_lib.apply_op("Add", x=x, y=y, name=name)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
set_shapes_for_outputs(ret)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1909, in set_shapes_for_outputs
shapes = shape_func(op)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1859, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 595, in call_cpp_shape_fn
require_shape_fn)
File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 659, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimensions must be equal, but are 16 and 0 for 'quasi_conv1d_7_1/add_2' (op: 'Add') with input shapes: [16,150,320], [0,150,320].
ali-186590cc37a5:quasi-rnn yike.ke$

@SeekPoint SeekPoint changed the title ValueError: Dimensions must be equal, but are 16 and 0 for 'quasi_conv1d_7_1/add_2' (op: 'Add') with input shapes: [16,150,320], [0,150,320]. set att=True will cause : ValueError: Dimensions must be equal, but are 16 and 0 for 'quasi_conv1d_7_1/add_2' (op: 'Add') with input shapes: [16,150,320], [0,150,320]. Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant