abaa902d9c27646a0528ab7c8b6ee182dce1de2c,deepchem/models/tensorgraph/layers.py,BatchNorm,create_tensor,#BatchNorm#Any#Any#,3140
Before Change
def create_tensor(self, in_layers=None, set_tensors=True, **kwargs):
inputs = self._get_input_tensors(in_layers)
parent_tensor = inputs[0]
out_tensor = tf.layers.batch_normalization(parent_tensor)
if set_tensors:
self.out_tensor = out_tensor
return out_tensor
After Change
inputs = self._get_input_tensors(in_layers)
parent_tensor = inputs[0]
if tfe.in_eager_mode():
if not self._built:
self._layer = self._build_layer()
layer = self._layer
else:
layer = self._build_layer()
out_tensor = layer(parent_tensor)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepchem/deepchem
Commit Name: abaa902d9c27646a0528ab7c8b6ee182dce1de2c
Time: 2018-03-26
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: BatchNorm
Method Name: create_tensor
Project Name: neuroailab/tnn
Commit Name: 00d2f96c92dd8783931894c509d0994f7f75dfe5
Time: 2018-05-29
Author: anayebi@stanford.edu
File Name: tnn/cell.py
Class Name:
Method Name: component_conv
Project Name: rlworkgroup/garage
Commit Name: c4020b5d3ab637e1d6e8c2bcd96c955a8f1db45b
Time: 2019-04-17
Author: CatherineSue@users.noreply.github.com
File Name: garage/tf/algos/npo.py
Class Name: NPO
Method Name: _build_policy_loss