Computes the square root of the tensor element-wise. ```python exec="true" source="above" session="tensor" result="python" print(Tensor([1., 2., 3., 4.]).sqrt().numpy()) ```
(self)
| 453 | return self.alu(Ops.TRUNC) |
| 454 | |
| 455 | def sqrt(self) -> Self: |
| 456 | """ |
| 457 | Computes the square root of the tensor element-wise. |
| 458 | |
| 459 | ```python exec="true" source="above" session="tensor" result="python" |
| 460 | print(Tensor([1., 2., 3., 4.]).sqrt().numpy()) |
| 461 | ``` |
| 462 | """ |
| 463 | return self._ensure_float().alu(Ops.SQRT) |
| 464 | |
| 465 | def sin(self) -> Self: |
| 466 | """ |