Sqrt defines the square root operation for the tensor values
()
| 153 | |
| 154 | // Sqrt defines the square root operation for the tensor values |
| 155 | func (tensor *Tensor) Sqrt() *Tensor { |
| 156 | defer tensor.Check() |
| 157 | return tensor.Pow(op.Const(tensor.Path.SubScope("y"), 0.5)) |
| 158 | } |