dc09af160f9f04c13fd0764b2712176b83538182,sonnet/python/modules/conv.py,SeparableConv2D,__init__,#SeparableConv2D#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,2222
Before Change
if not stride[0] == stride[3] == 1:
raise base.IncompatibleShapeError(
"Invalid stride: First and last element must be 1.")
if not (isinstance(stride[1], numbers.Integral) and
isinstance(stride[2], numbers.Integral)):
raise base.IncompatibleShapeError(
"Invalid stride: stride[1] and [2] must be integer.")
self._stride = tuple(stride)
After Change
self._kernel_shape = _fill_and_verify_parameter_shape(kernel_shape, 2,
"kernel")
if data_format not in SUPPORTED_DATA_FORMATS:
raise ValueError("Invalid data_format {:s}. Allowed formats "
"{:s}".format(data_format, SUPPORTED_DATA_FORMATS))
self._data_format = data_format
// We want to support passing native strides akin to [1, m, n, 1]
if isinstance(stride, collections.Iterable) and len(stride) == 4:
if self._data_format == DATA_FORMAT_NHWC:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: deepmind/sonnet
Commit Name: dc09af160f9f04c13fd0764b2712176b83538182
Time: 2017-11-09
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: SeparableConv2D
Method Name: __init__
Project Name: keras-team/keras
Commit Name: c3eb62763fcc5029c26b025ba1b60d7788d491a1
Time: 2019-03-30
Author: andhus@kth.se
File Name: keras/engine/saving.py
Class Name:
Method Name: load_model
Project Name: GPflow/GPflow
Commit Name: baf110d82f60c51a5680e728cd3c5c6d3536117d
Time: 2017-09-24
Author: art.art.v@gmail.com
File Name: gpflow/params.py
Class Name: ParamList
Method Name: __init__