megengine.module.init.fill_#

fill_(tensor, val)[source]#

Fills the given tensor with value val.

Parameters:
  • tensor (Tensor) – tensor to be initialized.

  • val (Union[float, int]) – value to be filled throughout the tensor.

Return type:

None