mixed_fftconv3d_fp32_bhl_w_reshape#
- mixed_fftconv3d_fp32_bhl_w_reshape(
- x,
- kernel,
- periodic,
- shortcut=None,
- use_phase_shift=True,
3D mixed-BC FFT conv wrapper for BLH layout (batch, X, Y, Z, hidden).
Reshapes BLH ↔ BHL around
mixed_fftconv3d_fp32_bhl(). Prefer this over operating in BLH natively.- Parameters:
x (Tensor) – Input tensor of shape
[B, X, Y, Z, H](BLH, channels-last).kernel (Tensor) – Kernel tensor of shape
[1|B, K_x, K_y, K_z, H](BLH). Leading dim 1 for a shared kernel,Bfor per-sample kernels.periodic (Sequence[bool]) – Length-3 sequence
(periodic_x, periodic_y, periodic_z).shortcut (Tensor | None) – Optional per-channel scale
[H].use_phase_shift (bool) – See
mixed_fftconv1d_fp32_bhl().
- Returns:
Tensor of shape
[B, X, Y, Z, H]in the original dtype ofx.- Return type: