fn
drop_block_op
→TensorImplPtrint drop_block_op(const int & a, int block_size, double p, double eps, Generator * gen)DropBlock — structured spatial dropout — free-function entry point.
Thin wrapper that delegates to DropBlockBackward::forward.
Parameters
aTensorImplPtr4-D input tensor of shape
(N, C, H, W).block_sizestd::int64_tSide length of each dropped spatial block.
pdoubleTarget block-level drop probability in .
epsdoubleNumerical guard for the denominator.
genGenerator*Optional RNG;
nullptr selects default_generator().Returns
TensorImplPtrOutput tensor of the same shape as a.