在代码最前面加上 tf.compat.v1.disable_eager_execution() 就解决了

本文介绍了如何通过在代码开头添加tf.compat.v1.disable_eager_execution()来快速解决可能出现的eager execution相关问题,帮助开发者提升代码效率。
在代码最前面加上 tf.compat.v1.disable_eager_execution() 就解决了

865
5290
8038
936
272
4019
336
3625

被折叠的 条评论
为什么被折叠?