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

Method Pow

tensor.go:141–146  ·  view source on GitHub ↗

Pow defines the pow operation x^y, where x are the tensor values y dtype is converted to tensor.Dtype() before executing Pow

(y tf.Output)

Source from the content-addressed store, hash-verified

139// Pow defines the pow operation x^y, where x are the tensor values
140// y dtype is converted to tensor.Dtype() before executing Pow
141func (tensor *Tensor) Pow(y tf.Output) *Tensor {
142 defer tensor.Check()
143 s := tensor.Path.SubScope("Pow")
144 tensor.Output = op.Pow(s, tensor.Output, Cast(s, y, tensor.Dtype()))
145 return tensor
146}
147
148// Square defines the square operation for the tensor values
149func (tensor *Tensor) Square() *Tensor {

Callers 5

SquareMethod · 0.95
SqrtMethod · 0.95
MaxValueFunction · 0.45
TestTensorFunction · 0.45
TestMaxValueFunction · 0.45

Calls 3

CheckMethod · 0.95
DtypeMethod · 0.95
CastFunction · 0.85

Tested by 2

TestTensorFunction · 0.36
TestMaxValueFunction · 0.36