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: 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/models
Commit Name: 855d29dba61a53553e8fc89237773368fd7e9cdf
Time: 2020-07-29
Author: sbeery@google.com
File Name: research/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py
Class Name: GenerateEmbeddingDataFn
Method Name: _run_inference_and_generate_embedding


Project Name: cheungdaven/DeepRec
Commit Name: c0f75b3a70cc2e433472de9dfd2406c685b561a9
Time: 2020-02-10
Author: soonmok.kwon@voyagerx.com
File Name: models/item_ranking/bprmf.py
Class Name: BPRMF
Method Name: predict