chainer.functions.shift¶
-
chainer.functions.shift(x, ksize=3, dilate=1)[source]¶ Shift function.
See: Shift: A Zero FLOP, Zero Parameter Alternative to Spatial Convolutions
- Parameters
x (
Variableor N-dimensional array) – Input variable of shape \((n, c, h, w)\).ksize (int or pair of ints) – Size of filters (a.k.a. kernels).
ksize=kandksize=(k, k)are equivalent.dilate (int or pair of ints) – Dilation factor of filter applications.
dilate=danddilate=(d, d)are equivalent.
- Returns
Output variable of same shape as
x.- Return type