fn
drop_path_op
→TensorImplPtrint drop_path_op(const int & a, double p, bool scale_by_keep, Generator * gen)DropPath — per-sample stochastic depth — free-function entry point.
Thin wrapper that delegates to DropPathBackward::forward.
Parameters
aTensorImplPtrInput tensor of rank ; first axis is the batch axis.
pdoublePer-sample drop probability in .
scale_by_keepboolWhether to rescale surviving samples by .
genGenerator*Optional RNG;
nullptr selects default_generator().Returns
TensorImplPtrOutput tensor of the same shape as a.