Function torch::nn::init::eye_#
Defined in File init.h
Function Documentation#
-
Tensor torch::nn::init::eye_(Tensor matrix)#
Fills the given 2-dimensional
matrixwith an identity matrix.No gradient will be recorded for this operation.
Defined in File init.h
Fills the given 2-dimensional matrix with an identity matrix.
No gradient will be recorded for this operation.