NotImplementedError: numpy() is only available when eager execution is enable

使用tensorflow训练模型,写入时报错NotImplementedError: numpy() is only available when eager execution is enable
import tensorflow as tf下面加一句tf.enable_eager_execution()即可解决问题

你可能感兴趣的:(问题解决,tensorflow,深度学习,python)