We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tf.raw_ops.LSTMBlockCellGrad
Bug
Yes
source
tf 2.16.1
Ubuntu 20.04
No response
3.11
The parameter x is expected to be two-dimensional, and an error will occur when x is one-dimensional
import tensorflow as tf use_peephole = False x = tf.constant(0, shape=[17], dtype=tf.float32) cs_prev = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) h_prev = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) w = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) wci = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) wcf = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) wco = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) b = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) i = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) cs = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) f = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) o = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) ci = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) co = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) cs_grad = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) h_grad = tf.constant(0.837607, shape=[28,29], dtype=tf.float32) tf.raw_ops.LSTMBlockCellGrad(x=x, cs_prev=cs_prev, h_prev=h_prev, w=w, wci=wci, wcf=wcf, wco=wco, b=b, i=i, cs=cs, f=f, o=o, ci=ci, co=co, cs_grad=cs_grad, h_grad=h_grad, use_peephole=use_peephole)
2024-05-01 03:41:18.804132: F tensorflow/core/framework/tensor_shape.cc:357] Check failed: d < dims() (1 vs. 1) Aborted (core dumped)
The text was updated successfully, but these errors were encountered:
Hi @LongZE666 ,
Thanks for reporting. I have reproduced the reported behaviour and attached gist here.
The checkfail is happening with 1D input to the argument x .
x
Attaching also snapshot of same below.
Sorry, something went wrong.
SuryanarayanaY
No branches or pull requests
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tf 2.16.1
Custom code
Yes
OS platform and distribution
Ubuntu 20.04
Mobile device
No response
Python version
3.11
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
The parameter x is expected to be two-dimensional, and an error will occur when x is one-dimensional
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: