fn
dropout_op
→TensorImplPtrint dropout_op(const int & a, double p, bool training, Generator * gen)Python wrappers
Public Python APIs implemented by this engine symbol.Element-wise inverted dropout — free-function entry point.
Thin wrapper that delegates to DropoutBackward::forward.
Parameters
aTensorImplPtrInput tensor of any shape.
pdoubleDrop probability in .
trainingboolIf
false, the forward is a pass-through.genGenerator*Optional RNG;
nullptr selects default_generator().Returns
TensorImplPtrOutput tensor of the same shape as a.