mixed_fftconv2d_fp32_bhl_chunked#
- mixed_fftconv2d_fp32_bhl_chunked(
- x,
- kernel,
- periodic,
- shortcut=None,
- use_phase_shift=True,
- chunk_size=None,
Memory-efficient 2D mixed-BC FFT conv (BHL) via channel chunking.
Produces the same output as
mixed_fftconv2d_fp32_bhl()but processes at mostchunk_sizechannels at a time to limit peak memory.- Parameters:
x (Tensor) – Input tensor of shape
[B, H, X, Y](any dtype, cast to fp32).kernel (Tensor) – Kernel tensor of shape
[1|B, H, K_x, K_y].periodic (Sequence[bool]) – Length-2 sequence
(periodic_x, periodic_y).shortcut (Tensor | None) – Optional per-channel scale
[H].use_phase_shift (bool) – See
mixed_fftconv1d_fp32_bhl().chunk_size (int | None) – Channels per chunk. Defaults to 128.
- Returns:
Tensor of shape
[B, H, X, Y]in the original dtype ofx.- Return type: