def dispatched

bendtorch-core@0.1.0.0 · src/tensor/batched_matmul.bend:356

import bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend as BatchedMatmul
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matrix

356def dispatched(+left: Shape.Shape, +right: Shape.Shape, a: Core.Tensor<left>, b: Core.Tensor<right>,
357  +dims: List<&2, U32>, +other: List<&2, U32>, both: Bool) -> Result<&2, &1, Matrix.Error, Core.Dynamic & Core.Dynamic & Core.Dynamic>:
358  match both:
359    case True{}:
360      Matrix.matmul(Core.Packed{left, a}, Core.Packed{right, b})
361    case False{}:
362      planned(left, right, a, b, plan_dims(dims, other))

Uses (12)

Used by (1)