pymoose.dot#

pymoose.dot(lhs, rhs, placement=None)[source]#

Dot product of two tensors.

Tensor contraction along the second and first dimensions of the respective inputs. For 1 and 2 dimensional inputs, this is equivalent to np.dot(lhs, rhs).

Parameters
  • lhs – Left-hand tensor factor.

  • rhs – Right-hand tensor factor.

  • placement – An optional Placement to pin this operation to.

Returns

Dot product of the two input tensors.