You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
tf 2.9
Custom code
Yes
OS platform and distribution
Linux Ubuntu 22.04
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I have a function as below. I have N = tf.shape(y_true)[0] where y_ture is <tf.Tensor 'y_true:0' shape=(None, 8, 6) dtype=float32>. I later iterate over N as for i in tf.range(N), but get an error.
raise e.with_traceback(filtered_tb) from None
File "/home/shakey/yolov3-tf2/yolov3_tf2/dataset.py", line 42, in transform_targets_for_output
for i in tf.range(N):
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: Iterating over a symbolic `tf.Tensor` is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature.
How can I solve that?
Standalone code to reproduce the issue
nothing.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Sorry for the delay, I tried to run your code on colab using TF v2.9, 2.16.1 and i am not facing any issue. Please find the gist here for reference.
And it looks like you are using an older Version of Tensorflow (2.9). Many bugs have been fixed in the latest version. Can you please execute your code using Latest Version (2.16.1) and let us know if the issue still persists?
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
tf 2.9
Custom code
Yes
OS platform and distribution
Linux Ubuntu 22.04
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I have a function as below. I have
N = tf.shape(y_true)[0]
wherey_ture
is<tf.Tensor 'y_true:0' shape=(None, 8, 6) dtype=float32>
. I later iterate over N asfor i in tf.range(N)
, but get an error.But I get error like this:
How can I solve that?
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: