tensorflow2 调试模式打开

山…隹 / 2023-07-20 / 原文

import tensorflow as tf
tf.config.experimental_run_functions_eagerly(True)

然后就可以训练时在模型内部打断点,调试内部结构了