constant_

dragon.vm.torch.nn.init.constant_(
  tensor,
  val
)[source]

Fill tensor with the scalar value.

\[\text{tensor} \leftarrow \text{value} \]
Parameters:
Returns:

dragon.vm.torch.Tensor – The input tensor.