pub trait EagerTensorEinsumExt {
// Required method
fn tensordot(
&self,
rhs: &EagerTensor,
axes: TensorDotAxes<'_>,
) -> Result<EagerTensor>;
}Expand description
Eager tensor contraction-sugar methods.
Required Methods§
Sourcefn tensordot(
&self,
rhs: &EagerTensor,
axes: TensorDotAxes<'_>,
) -> Result<EagerTensor>
fn tensordot( &self, rhs: &EagerTensor, axes: TensorDotAxes<'_>, ) -> Result<EagerTensor>
Contract two eager tensors over the requested axes.
§Errors
Returns Error::Validation with AxisOutOfBounds, DuplicateAxis,
RankMismatch, or ShapeMismatch for invalid axes/shapes, or
Error::Runtime for backend execution failures.