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

Before Change


          "Number of input channels must be known at module build time")
    input_channels = self._input_shape[2]

    if self._input_shape[0] is None:
      raise base.UnderspecifiedError(
          "Batch size must be known at module build time")
    batch_size = self._input_shape[0]

After Change


    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: 3

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: tryolabs/luminoth
Commit Name: d52eb0bf3d6df25c70933321a841dac157806479
Time: 2018-03-20
Author: joaquin.alori@gmail.com
File Name: luminoth/models/ssd/ssd.py
Class Name: SSD
Method Name: _build


Project Name: uber/ludwig
Commit Name: 8fcba34528b97d0c7fa336b16641e2e99c93acb7
Time: 2020-07-06
Author: taddair@uber.com
File Name: ludwig/utils/horovod_utils.py
Class Name:
Method Name: allgather_object