01a2b5fcd6151bb7264607ef71945eee95b73ea4,deepchem/models/layers.py,DAGLayer,build,#DAGLayer#Any#,2933

Before Change


    self.W_list.append(
        self.add_weight(
            name="kernel",
            shape=(prev_layer_size, self.n_outputs),
            initializer=self.init,
            trainable=True))
    self.b_list.append(
        self.add_weight(
            name="bias",
            shape=(self.n_outputs,),
            initializer="zeros",
            trainable=True))
    if self.dropout is not None and self.dropout > 0.0:
      self.dropouts.append(Dropout(rate=self.dropout))
    else:

After Change


        self.dropouts.append(None)
      prev_layer_size = layer_size
    self.W_list.append(init([prev_layer_size, self.n_outputs]))
    self.b_list.append(backend.zeros(shape=[
        self.n_outputs,
    ]))
    if self.dropout is not None and self.dropout > 0.0:
      self.dropouts.append(Dropout(rate=self.dropout))
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepchem/deepchem
Commit Name: 01a2b5fcd6151bb7264607ef71945eee95b73ea4
Time: 2020-10-16
Author: hsjang1205@naver.com
File Name: deepchem/models/layers.py
Class Name: DAGLayer
Method Name: build


Project Name: deepchem/deepchem
Commit Name: 01a2b5fcd6151bb7264607ef71945eee95b73ea4
Time: 2020-10-16
Author: hsjang1205@naver.com
File Name: deepchem/models/layers.py
Class Name: DAGGather
Method Name: build


Project Name: XifengGuo/CapsNet-Keras
Commit Name: 5e35bf984690a196063e3eb3fe5807b1475e7d0e
Time: 2017-11-01
Author: guoxifeng1990@163.com
File Name: capsulelayers.py
Class Name: CapsuleLayer
Method Name: build