5bc2492f622192d1b6f8090a81aad7287af1bd17,returnn/tf/layers/basic.py,CompareLayer,__init__,#CompareLayer#Any#Any#,4781

Before Change


      if source.output.batch_dim_axis != batch_axis:
        x2 = swapaxes(x2, batch_axis, source.output.batch_dim_axis)
      r = op(x, x2)
      if r_last is not None:
        r = tf.logical_and(r_last, r)
      r_last = r
    self.output.placeholder = r_last

  @classmethod

After Change


      r_last = opt_logical_and(r_last, op(x, x2))
      x = x2
    if value is not None:
      r_last = opt_logical_and(r_last, op(x, value))
    self.output.placeholder = r_last

  @classmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rwth-i6/returnn
Commit Name: 5bc2492f622192d1b6f8090a81aad7287af1bd17
Time: 2020-08-13
Author: mdigangi@apptek.com
File Name: returnn/tf/layers/basic.py
Class Name: CompareLayer
Method Name: __init__


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 400e086b944906999e2b4567e8ec55a342f86bae
Time: 2017-03-31
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name:
Method Name: spike_pool_2d


Project Name: tensorflow/tensorboard
Commit Name: ba2ef0a2dac5881f37f81a55f17e18b7f9008416
Time: 2017-08-15
Author: wchargin@gmail.com
File Name: tensorboard/plugins/scalar/scalars_plugin_test.py
Class Name: ScalarsPluginTest
Method Name: generate_run