de769df64ad870d9cc594c09f2d2e4cd5ae0ea21,sonnet/python/modules/conv.py,SeparableConv2D,_build,#SeparableConv2D#Any#,2636
Before Change
self._input_shape = tuple(inputs.get_shape().as_list())
if len(self._input_shape) != 4:
raise base.IncompatibleShapeError(
"Input Tensor must have shape (batch_size, input_height, "
"input_width, input_channels)")
if self._data_format == DATA_FORMAT_NCHW:
input_channels = self._input_shape[1]
else:
After Change
// 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(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: SeparableConv2D
Method Name: _build
Project Name: deepmind/sonnet
Commit Name: 869b558268f198de90822e4ea17182dc74b78213
Time: 2017-11-09
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv2D
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: DepthwiseConv2D
Method Name: _build