You can get the gradients with something like:

  

      github.com/keras-team/keras
  

  
    
  
	  
  

  
    
      How to obtain the gradient of each parameter in the last epoch of training 1
    

    
      
        opened 
        
          
        
        Apr 8, 2016
      
      

        
          closed 
        
          
        
        Aug 17, 2017
      
        

      
        
          
          tuming1990
        
      
    

    
        stale
    
  


  
    I want to obtain the gradient of each parameter in the last epoch of training. I…s there a way to do so in Keras?

Thanks,
Ming