MCPcopy Create free account
hub / github.com/galeone/tfgo / MatMul

Method MatMul

tensor.go:132–137  ·  view source on GitHub ↗

MatMul defines the matrix multiplication operation between the tensor and `tfout`. `tfout` dtype is converted to tensor.Dtype() before multiplying

(tfout tf.Output)

Source from the content-addressed store, hash-verified

130// and `tfout`.
131// `tfout` dtype is converted to tensor.Dtype() before multiplying
132func (tensor *Tensor) MatMul(tfout tf.Output) *Tensor {
133 defer tensor.Check()
134 s := tensor.Path.SubScope("MatMul")
135 tensor.Output = op.MatMul(s, tensor.Output, Cast(s, tfout, tensor.Dtype()))
136 return tensor
137}
138
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

Callers 1

TestTensorFunction · 0.95

Calls 3

CheckMethod · 0.95
DtypeMethod · 0.95
CastFunction · 0.85

Tested by 1

TestTensorFunction · 0.76