I am using Windows 10, Python 3.5, and tensorflow 1.1.0. I have the following script:
import tensorflow as tf import tensorflow.contrib.keras.api.keras.backe
you can also use layer name, if layers index number is confusing
weights:
model.get_layer(<< layer_name >>).get_weights()[0]
Biases:
model.get_layer(<< layer_name >>).get_weights()[1]