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 (Variable or 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=k and ksize=(k, k) are equivalent.

  • dilate (int or pair of ints) – Dilation factor of filter applications. dilate=d and dilate=(d, d) are equivalent.

Returns

Output variable of same shape as x.

Return type

Variable