pydens icon indicating copy to clipboard operation
pydens copied to clipboard

OperatorNotAllowedInGraphError: iterating over `tf.Tensor` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function

Open tgautam03 opened this issue 5 years ago • 2 comments

Hi

I was just trying to run your tutorials notebook when I ran into this error. I'm running my code on colab and I can't change tf version to 1.14 as colab sets it to 1.15.

I hope someone can help me here.

Thanks

tgautam03 avatar Oct 26 '20 13:10 tgautam03

Hello!

Can you share the link to the colab notebook?

SergeyTsimfer avatar Oct 27 '20 12:10 SergeyTsimfer

Hi! I've encountered the same problem trying to launch toy examples from tutorial. Here is the link: https://colab.research.google.com/drive/1H3-lK5AA6Y9iqfItcG-aVW5hfldIXEox?usp=sharing I read previous issues and found out that it is somehow connected to the version of Tensorflow being used. Indeed, code from the link works if tf is set to version 1.14.0

ArturGoldman avatar Apr 05 '21 12:04 ArturGoldman