Let us say I have a simple NN model classifying MNIST like so:
model = models.Sequential([ tf.keras.layers.Flatten(input_shape=(28, 28)), tf.keras.layers.Dens