Skip to content
fn

alpha_dropout_op

→TensorImplPtr
int alpha_dropout_op(const int & a, double p, bool training, Generator * gen)

Python wrappers

Public Python APIs implemented by this engine symbol.

SELU-preserving alpha dropout — free-function entry point.

Thin wrapper that delegates to AlphaDropoutBackward::forward.

Parameters

aTensorImplPtr
Input tensor (typically the output of a SELU activation).
pdouble
Drop probability in [0,1)[0, 1).
trainingbool
If false, the forward is a pass-through.
Optional RNG; nullptr selects default_generator().

Returns

TensorImplPtr

Output tensor of the same shape as a.