Skip to main content

Module prelu

Module prelu 

Source
Expand description

PReLU FW plan โ€” Milestone 5.3.

y[..., c, ...] = x[..., c, ...] if positive, else weight[c] * x[..., c, ...].

weight is either per-channel (shape == [C], with C the size of the channel axis) or a single learnable scalar (shape == [1]).

Distinct from crate::UnaryParamPlan because the parameter is a tensor operand, not a scalar โ€” needs its own plan shape.

Structsยง

PReluArgs
Args bundle for a PReLU FW launch.
PReluDescriptor
Descriptor for a PReLU FW op.
PReluPlan
PReLU forward plan.