This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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