title: How to get the weights of layer in a keras model for each input
body: <p>I know that you can you Model.layer[layer_number].getWeights() to get weight of layer from a keras model at a certain point. I am only to get those weights for an epoch or a batch using callbacks during training. </p>
  
  <p>But I want to get the weights of the layer for each input in the training part. Or if possible the activation of a layer for each input instead of an epoch.</p>
  
  <p>Is there a way to achieve that?</p>