def product

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

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

328# The product of the storages of `left` and `right` read as `given` says,
329# into a new tensor of shape `output`.
330def product(+given: Layout, +output: Shape.Shape, left: Core.Dynamic, right: Core.Dynamic) ->
331  Result<&2, &1, Core.Error, Core.Dynamic & Core.Dynamic & Core.Dynamic>:
332  allocated(given, output, left, right, Core.new(output, 0.0))

Uses (8)

Used by (2)