Fills the given ``tensor`` with the scalar value `1`. Args: tensor: tensor to be initialized.
(tensor: Tensor)
| 30 | |
| 31 | |
| 32 | def ones_(tensor: Tensor) -> None: |
| 33 | """Fills the given ``tensor`` with the scalar value `1`. |
| 34 | |
| 35 | Args: |
| 36 | tensor: tensor to be initialized. |
| 37 | """ |
| 38 | fill_(tensor, 1) |
| 39 | |
| 40 | |
| 41 | def uniform_(tensor: Tensor, a: float = 0.0, b: float = 1.0) -> None: |
no test coverage detected