Skip to content

Instantly share code, notes, and snippets.

Created April 16, 2019 10:18
What would you like to do?
#creating a mapping of layer name ot layer details
#we will create a dictionary layers_info which maps a layer name to its charcteristics
layers_info = {}
for i in model.layers:
layers_info[] = i.get_config()
#here the layer_weights dictionary will map every layer_name to its corresponding weights
layer_weights = {}
for i in model.layers:
layer_weights[] = i.get_weights()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment