Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎有马车。很多东西都不行。另一方面,tensorflow 2.0 似乎解决了很多与 tensorboard 交互有关的问题,因此值得使用。如何关闭所有渴望的东西。
要禁用急切执行(而不是一般的 TF2 行为),请执行以下操作:
tf.compat.v1.disable_eager_execution()
这是一种全球效应。
你可以打电话
tf.compat.v1.disable_v2_behavior()
但是您并不想这样做,它会破坏一切,并且仅应在迁移非常庞大的代码库时使用。