【发布时间】:2019-02-13 23:41:36
【问题描述】:
我正在尝试在 Colab 笔记本上使用 Tensorflow 启用 Eager Execution,但我收到一条错误消息:
import tensorflow as tf
import tensorflow.contrib.eager as tfe
tf.enable_eager_execution()
ValueError: tf.enable_eager_execution 必须在程序启动时调用
我尝试单击“重置运行时”以便在启动时运行 tf.enable_eager_execution 但错误再次出现。
打开另一个笔记本没有帮助。
在出现此错误后,我可以在 Colab 中执行哪些操作以允许立即执行?
谢谢。
【问题讨论】:
标签: python tensorflow google-colaboratory eager