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

ValueError in CTCLoss #12957

Closed
ghost opened this issue Sep 11, 2017 · 1 comment
Closed

ValueError in CTCLoss #12957

ghost opened this issue Sep 11, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 11, 2017

TF version 1.1.0, Ubunu 16.04 Cuda 8.0, Cudnn 6

loss = tf.nn.ctc_loss(targets, logits, maxT, time_major=False)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow /python/ops/ctc_ops.py", line 145, in ctc_loss
ctc_merge_repeated=ctc_merge_repeated)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_ctc_ops.py", line 165, in _ctc_loss
name=name)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2339, in create_op
set_shapes_for_outputs(ret)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1719, in set_shapes_for_outputs
shapes = shape_func(op)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1669, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn
debug_python_shape_fn, require_shape_fn)
File "/home/ilab/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Shape must be rank 1 but is rank 0 for 'CTCLoss' (op: 'CTCLoss') with input shapes: [?,64,23], [?,?], [?], [].

@reedwm
Copy link
Member

reedwm commented Sep 11, 2017

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there. Thanks!

@reedwm reedwm closed this as completed Sep 11, 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