47aafaaca029fcd249651dfdf1aa2e468229e0e6,keras/layers/containers.py,Sequential,set_weights,#Sequential#Any#,158

Before Change



    def set_weights(self, weights):
        for i in range(len(self.layers)):
            nb_param = len(self.layers[i].trainable_weights) + len(self.layers[i].non_trainable_weights)
            self.layers[i].set_weights(weights[:nb_param])
            weights = weights[nb_param:]

After Change



    def set_weights(self, weights):
        for layer in self.layers:
            nb_param = len(layer.get_weights())
            layer.set_weights(weights[:nb_param])
            weights = weights[nb_param:]

    def get_config(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 47aafaaca029fcd249651dfdf1aa2e468229e0e6
Time: 2016-02-19
Author: Nicholas.Eggert@target.com
File Name: keras/layers/containers.py
Class Name: Sequential
Method Name: set_weights


Project Name: keras-team/keras
Commit Name: ee179f7da155c3cb8129b954db828906886ad4e4
Time: 2015-06-08
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: AutoEncoder
Method Name: get_output


Project Name: ray-project/ray
Commit Name: 9f04a65922e601e7bf444616e6262e67a8a06647
Time: 2020-05-07
Author: ekhliang@gmail.com
File Name: rllib/execution/train_ops.py
Class Name: TrainTFMultiGPU
Method Name: __call__