【问题标题】:Tensorflow Eager Execution on ColabColab 上的 TensorFlow Eager Execution
【发布时间】: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


    【解决方案1】:

    这是我们这边的一个错误,现已修复,原始代码 sn-p 应该可以再次工作。见Tensorflow eager mode dose not work when GPU is enabled in google colab · Issue #262 · googlecolab/colabtools。

    (注意:我是 Google Colaboratory 团队的一员。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-06
      • 2018-10-02
      • 2020-02-16
      • 2023-03-14
      • 2020-02-23
      • 2020-01-10
      相关资源
      最近更新 更多