constant_¶
- dragon.vm.torch.nn.init.- constant_(
 tensor,
 val
 )[source]¶
- Fill tensor with the scalar value. \[\text{tensor} \leftarrow \text{value} \]- Parameters:
- tensor (dragon.vm.torch.Tensor) – The input tensor.
- val (number) – The value to fill.
 
 - Returns:
- dragon.vm.torch.Tensor – The output tensor. 
 
