analysiscenter / pydens

PyDEns is a framework for solving Ordinary and Partial Differential Equations (ODEs & PDEs) using neural networks
Apache License 2.0
296 stars 67 forks source link

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

Open tgautam03 opened 4 years ago

tgautam03 commented 4 years ago

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

SergeyTsimfer commented 4 years ago

Hello!

Can you share the link to the colab notebook?

ArturGoldman commented 3 years ago

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