title: Print Keras Kernel
body: <p>I have written a custom keras layer and basically set up a kernel that looks like this as an example:</p>
  
  <pre><code>[[w1, 0,  0],
   [w2, w3, 0],
   [0,  w4, w5]]
  </code></pre>
  
  <p>where w1,...w5 are trainable weights and the zero entries are not trainable.</p>
  
  <p>Now, I want to confirm if everything is working correctly (i.e. whether the kernel still has the zero entries where it should have it after training). I could not find out, how to print the kernel after training. The .get_weights() method just gets me the weights, but I want to print the kernel explictly.</p>
  
  <p>Thank you in advance</p>