tensorflow2.0中图模式与eager模式的转换

it2023-09-27  75

tensorflow2.0默认状态使用eager模式

1.关闭eager模式,启用图模式:tf.compat.v1.disable_eager_execution() 2.启用eager模式:tf.compat.v1.enable_eager_execution()

最新回复(0)