Function torch::nn::init::dirac_#
Defined in File init.h
Function Documentation#
-
Tensor torch::nn::init::dirac_(Tensor tensor)#
Fills the given
tensorwith the Dirac delta function in-place, and returns it.No gradient will be recorded for this operation.