ngraph.utils.reduction.get_reduction_axes

ngraph.utils.reduction.get_reduction_axes(node: _pyngraph.Node, reduction_axes: Optional[Iterable[int]]) Iterable[int]

Get reduction axes if it is None and convert it to set if its type is different.

If reduction_axes is None we default to reduce all axes.

Parameters
  • node – The node we fill reduction axes for.

  • reduction_axes – The collection of indices of axes to reduce. May be None.

Returns

Set filled with indices of axes we want to reduce.