Rate this Page

Function torch::nn::init::dirac_#

Function Documentation#

Tensor torch::nn::init::dirac_(Tensor tensor)#

Fills the given tensor with the Dirac delta function in-place, and returns it.

No gradient will be recorded for this operation.