[에러 해결 방법] tf.gradients is not supported when eager execution is enabled 일때
원인 : RuntimeError: tf.gradients is not supported when eager execution is enabled 라고 에러가 뜸
해결 방법
- 해당 코드를 맨 처음 실행
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
댓글남기기