For example, when using Keras to train a CNN model,
I only changed some string in print statements,
but it triggers rerunning of the whole (slow) training process.
score = model.evaluate(x_test, y_test, verbose=0) print('test loss:', score) print('test accuracy:', score)
Test in print string will trigger rerunning of the whole training process.
May more smart static analysis be applied?