level 1
RuntimeError: __iter__() is only supported inside of tf.function or when eager execution is enabled.
2021年01月17日 13点01分
1
level 1
用百度的方法在开头加了tf.enable_eager_execution()
2021年01月17日 13点01分
2
level 1
报错变成了module 'tensorflow' has no attribute 'enable_eager_execution'
2021年01月17日 13点01分
3
level 1
继续百度tf.compat.v1.enable_eager_execution()
结果报错 __iter__() is only supported inside of tf.function or when eager execution is enabled.
2021年01月17日 13点01分
4