tensorplay.nn.init.eye_
- tensorplay.nn.init.eye_(tensor)[source]
Fill the 2-D
tensorin-place with the identity matrix.As many inputs as possible are preserved through a Linear layer.
Latest development documentation · Updated 2026-09-08. A documentation snapshot for package 1.0.0.dev20260909 is not available.
Fill the 2-D tensor in-place with the identity matrix.
As many inputs as possible are preserved through a Linear layer.
Live status · packages · docs