def product

bendtorch-core@0.1.0.0 · src/tensor/matmul.bend:852

import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul
import Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core

852# The product of two rank-2 operands laid out in orders lo and ro. Both
853# inputs come back to the caller as the kept halves of their clones.
854def product(+lo: Order, +ro: Order, left: Core.Dynamic, right: Core.Dynamic) ->
855  Result<&2, &1, Error, Core.Dynamic & Core.Dynamic & Core.Dynamic>:
856  Core.Packed{+left_shape, a} = left
857  Core.Packed{+right_shape, b} = right
858  product_planned(lo, ro, left_shape, right_shape, a, b, product_plan(lo, ro, left_shape, right_shape))

Uses (7)

Used by (9)