nnmnkwii.util.apply_each2d_trim

nnmnkwii.util.apply_each2d_trim(func2d, X, *args, **kwargs)[source]

Apply function for each trimmed 2d slice.

Parameters
  • func2d (Function) – Function applied multiple times for each 2d slice.

  • X (numpy.ndarray) – Input 3d array of shape (N x T x D)

Returns

Output array (N x T x D')

Return type

numpy.ndarray