Rate this Page

Function torch::nn::init::eye_#

Function Documentation#

Tensor torch::nn::init::eye_(Tensor matrix)#

Fills the given 2-dimensional matrix with an identity matrix.

No gradient will be recorded for this operation.