oa::ml::nn::PixelShuffle
Rearrange [N, C*r^2, H, W] to [N, C, H*r, W*r]. The composed contract flattens each sample and remaps elements with a single matrix::gather_last_dim using a host-built I32 index plane — the same channel ordering as nn.PixelShuffle (out[.., c, h*r+i, w*r+j] = in[.., c*r^2 + i*r + j, h, w]). The index plane is rebuilt per forward, matching the explicit host-observation boundary used elsewhere for data-shaping metadata. Parameterless; gradients flow through the gather adjoint.
Declaration
pub struct PixelShuffle { /* private fields */ }Public Rust declaration.
Public Methods
Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.