MCPcopy Index your code
hub / github.com/galeone/tfgo / Sqrt

Method Sqrt

tensor.go:155–158  ·  view source on GitHub ↗

Sqrt defines the square root operation for the tensor values

()

Source from the content-addressed store, hash-verified

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

Callers 1

TestTensorFunction · 0.45

Calls 2

CheckMethod · 0.95
PowMethod · 0.95

Tested by 1

TestTensorFunction · 0.36