e2403d010270eae28c51f81900e763dfeba1f16d,experiments/custom_tdnn_layer.py,TimeDelayLayer,build,#TimeDelayLayer#,13

Before Change


    def build(self, input_shape):
        // Create a trainable weight variable for this layer.
        self.kernel = self.add_weight(name="kernel",
                                      shape=(input_shape[1], self.output_dim),
                                      initializer="uniform",
                                      trainable=True)
        super(TimeDelayLayer, self).build(input_shape)  // Be sure to call this somewhere!

After Change


        // input_shape traditionally is (batch_size, steps, input_dim)
        input_dim = input_shape[2:]
        print ("In build method...")
        print ("input_shape: " + str(input_shape))
        print ("input_dim: " + str(input_dim))

        // Create a trainable weight variable for this layer.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: thoughtworksarts/EmoPy
Commit Name: e2403d010270eae28c51f81900e763dfeba1f16d
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: experiments/custom_tdnn_layer.py
Class Name: TimeDelayLayer
Method Name: build


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: d9748278abf04a9c74a95053fda62d0bff8b9f93
Time: 2019-02-16
Author: ricsinaruto@hotmail.com
File Name: t2t_csaky/scripts/hred_metrics.py
Class Name:
Method Name: main


Project Name: akkana/scripts
Commit Name: cb38a31627f152c22fb9e474c31b34da588e1134
Time: 2020-07-26
Author: akkana@shallowsky.com
File Name: starstack.py
Class Name:
Method Name: read_image