de769df64ad870d9cc594c09f2d2e4cd5ae0ea21,sonnet/python/modules/conv.py,DepthwiseConv2D,_build,#DepthwiseConv2D#Any#,2321

Before Change


          "input_width, input_channels)")

    if self._data_format == DATA_FORMAT_NCHW:
      input_channels = self._input_shape[1]
    else:
      input_channels = self._input_shape[3]

    if input_channels is None:

After Change


          `tf.float16` or `tf.float32`.
    
    // Handle input whose shape is unknown during graph creation.
    self._input_shape = tuple(inputs.get_shape().as_list())
    if len(self._input_shape) != len(self._data_format):
      raise base.IncompatibleShapeError((
          "Input Tensor must have rank {} corresponding to "
          "data_format {}, but instead was {}.").format(
              len(self._data_format), self._data_format, self._input_shape))

    self._input_channels = self._input_shape[self._channel_index]
    if self._input_channels is None:
      raise base.UnderspecifiedError(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: deepmind/sonnet
Commit Name: de769df64ad870d9cc594c09f2d2e4cd5ae0ea21
Time: 2018-01-29
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: DepthwiseConv2D
Method Name: _build


Project Name: deepmind/sonnet
Commit Name: de769df64ad870d9cc594c09f2d2e4cd5ae0ea21
Time: 2018-01-29
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: SeparableConv2D
Method Name: _build


Project Name: deepmind/sonnet
Commit Name: de769df64ad870d9cc594c09f2d2e4cd5ae0ea21
Time: 2018-01-29
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: InPlaneConv2D
Method Name: _build