Mul defines the multiplication operation between the tensor and `tfout`. It's the multiplication element-wise with broadcasting support. `tfout` dtype is converted to tensor.Dtype() before multiplying
(tfout tf.Output)
| 120 | // and `tfout`. It's the multiplication element-wise with broadcasting support. |
| 121 | // `tfout` dtype is converted to tensor.Dtype() before multiplying |
| 122 | func (tensor *Tensor) Mul(tfout tf.Output) *Tensor { |
| 123 | defer tensor.Check() |
| 124 | s := tensor.Path.SubScope("Mul") |
| 125 | tensor.Output = op.Mul(s, tensor.Output, Cast(s, tfout, tensor.Dtype())) |
| 126 | return tensor |
| 127 | } |
| 128 | |
| 129 | // MatMul defines the matrix multiplication operation between the tensor |
| 130 | // and `tfout`. |