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)
| 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 |
| 141 | func (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 |
| 149 | func (tensor *Tensor) Square() *Tensor { |