Created
July 30, 2017 04:11
-
-
Save joelouismarino/d22a1677d7a76ec4ab074d44f8ceb921 to your computer and use it in GitHub Desktop.
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
for layer_name in net.params.keys(): | |
weights = np.copy(net.params[layer_name][0].data) | |
biases = np.copy(net.params[layer_name][1].data) | |
model_layer = googlenet.get_layer(name=layer_name) | |
model_layer.set_weights([weights, biases]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment