jax.lax.reduce_window#

jax.lax.reduce_window(operand, init_value, computation, window_dimensions, window_strides, padding, base_dilation=None, window_dilation=None)[原始碼]#

包裝 XLA 的 ReduceWindowWithGeneralPadding 運算子。

參數:
  • computation (Callable)

  • window_dimensions (core.Shape)

  • window_strides (Sequence[int])

  • padding (str | Sequence[tuple[int, int]])

  • base_dilation (Sequence[int] | None | None)

  • window_dilation (Sequence[int] | None | None)

傳回類型:

Array