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

Method Mul

tensor.go:122–127  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

120// and `tfout`. It's the multiplication element-wise with broadcasting support.
121// `tfout` dtype is converted to tensor.Dtype() before multiplying
122func (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`.

Callers 2

IsCloseFunction · 0.45
TestTensorFunction · 0.45

Calls 3

CheckMethod · 0.95
DtypeMethod · 0.95
CastFunction · 0.85

Tested by 1

TestTensorFunction · 0.36