eye_¶
dragon.vm.torch.nn.init.
eye_
(tensor)[source]¶Fill tensor as the identity matrix.
- Parameters:
- tensor (dragon.vm.torch.Tensor) – The input tensor.
- Returns:
dragon.vm.torch.Tensor – The output tensor.
dragon.vm.torch.nn.init.
eye_
(tensor)[source]¶Fill tensor as the identity matrix.
dragon.vm.torch.Tensor – The output tensor.