fovi.arch.grid_pool_warp

Fused inference pooling on Torch’s CUDA stream, without full-resolution temporaries.

fovi.arch.grid_pool_warp.cache(user_function, /)[source]

Simple lightweight unbounded cache. Sometimes called “memoize”.

fovi.arch.grid_pool_warp.pool_forward(values: Tensor, neighbors: Tensor, visible: Tensor | None, mode: str) → Tensor[source]

Pool eligible (B, C, N) CUDA storage; the public layer handles dispatch and validation.