def allocated_mapping

bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:1047

import bendtorch-core@0.1.0.0/src/tensor/core_PROOF.bend as CorePROOF
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/elementwise.bend as Elementwise

1047def allocated_mapping(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan,
1048  result: Result<&2, &1, Core.Error, Core.Tensor<Shape.output_shape(plan)>>, left: Core.Dynamic, right: Core.Dynamic) ->
1049  Elementwise.MappingModel<operation, plan, left, right, Elementwise.allocated(operation, plan, left, right, result)>:
1050  match result:
1051    case Fail{error}:
1052      Elementwise.MappingModel{Unit{}}
1053    case Done{output}:
1054      successful_cached_loop_mapping(operation, plan, left, right, output)

Uses (11)

Used by (1)