ef86d2e73e7ce03c4184a04a336d96caf661269a,sonnet/python/modules/conv.py,Conv1DTranspose,_build,#Conv1DTranspose#Any#,1292

Before Change


                              partitioner=self._partitioners.get("w", None),
                              regularizer=self._regularizers.get("w", None))

    tf_out_shape = ((batch_size, 1,) + self._output_shape +
                    (self.output_channels,))

    // Add an extra dimension to the input - a height of 1.

After Change


    batch_size = tf.expand_dims(tf.shape(inputs)[0], 0)
    out_shape = (1, self.output_shape[0])
    out_channels = (self.output_channels,)
    out_shape_tuple = out_shape + out_channels
    conv_output_shape = tf.convert_to_tensor(out_shape_tuple)
    tf_out_shape = tf.concat([batch_size, conv_output_shape], 0)

    // Add an extra dimension to the input - a height of 1.
    inputs = tf.expand_dims(inputs, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmind/sonnet
Commit Name: ef86d2e73e7ce03c4184a04a336d96caf661269a
Time: 2017-07-03
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv1DTranspose
Method Name: _build


Project Name: tensorflow/agents
Commit Name: 14c08e3da6965eccee804f53ecdf8ecd0c1656f2
Time: 2019-02-04
Author: oars@google.com
File Name: tf_agents/utils/nest_utils_test.py
Class Name: NestedTensorsTest
Method Name: testGetOuterShapeDynamicShapeNotBatched


Project Name: tensorflow/agents
Commit Name: 14c08e3da6965eccee804f53ecdf8ecd0c1656f2
Time: 2019-02-04
Author: oars@google.com
File Name: tf_agents/utils/nest_utils_test.py
Class Name: NestedTensorsTest
Method Name: testGetOuterShapeDynamicShapeBatched