Created
October 17, 2020 20:24
-
-
Save MCarlomagno/207df15fc5b1887f68b8e1123b930be1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var updateTargetModel = function () { | |
// copy weights from model to target_model | |
for (let i = 0; i < model.layers.length; i++) { | |
targetModel.layers[i].setWeights(model.layers[i].getWeights()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment