c63d4351c7752a769cdc9a1bfcf79ffd140e0e6a,onnx_tf/handlers/backend/unpool_mixin.py,UnpoolMixin,_unpool,#Any#Any#Any#Any#Any#,126

Before Change



      pool_ = tf.reshape(pool, [flat_input_size])
      batch_range = tf.reshape(
          tf.range(tf.cast(output_shape[0], tf.int64), dtype=ind.dtype),
          shape=[input_shape[0], 1, 1, 1])
      b = tf.ones_like(ind) * batch_range
      b1 = tf.reshape(b, [flat_input_size, 1])
      ind_ = tf.reshape(ind, [flat_input_size, 1])
      ind_ = tf.concat([b1, ind_], 1)

After Change


      input_shape = tf.shape(pool)

      flat_input_size = tf.reduce_prod(input_shape)
      flat_output_shape = [tf.reduce_prod(output_shape)]

      pool_ = tf.reshape(pool, [flat_input_size])
      ind_ = tf.reshape(ind, [flat_input_size, 1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: onnx/onnx-tensorflow
Commit Name: c63d4351c7752a769cdc9a1bfcf79ffd140e0e6a
Time: 2020-10-29
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/unpool_mixin.py
Class Name: UnpoolMixin
Method Name: _unpool


Project Name: GPflow/GPflow
Commit Name: bd1e9c04b48dd5ccca9619d5eaa2595a358bdb08
Time: 2020-01-31
Author: st--@users.noreply.github.com
File Name: gpflow/kernels/misc.py
Class Name: Coregion
Method Name: K


Project Name: onnx/onnx-tensorflow
Commit Name: c63d4351c7752a769cdc9a1bfcf79ffd140e0e6a
Time: 2020-10-29
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/unpool_mixin.py
Class Name: UnpoolMixin
Method Name: _unpool


Project Name: GPflow/GPflow
Commit Name: bd1e9c04b48dd5ccca9619d5eaa2595a358bdb08
Time: 2020-01-31
Author: st--@users.noreply.github.com
File Name: gpflow/kernels/misc.py
Class Name: Coregion
Method Name: K_diag


Project Name: tensorflow/agents
Commit Name: 5886ac2bd8593b69f87181b20d2d4ddaa27dfbce
Time: 2019-01-18
Author: ebrevdo@google.com
File Name: tf_agents/networks/encoding_network.py
Class Name: EncodingNetwork
Method Name: call