#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.name] = 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.name] = i.get_weights() | |
print(layers_info['block5_conv1']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment