def allocated_retains
import bendtorch-core@0.1.0.0/src/tensor/elementwise_PROOF.bend as ElementwisePROOFimport 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
import bendtorch-core@0.1.0.0/src/tensor/elementwise_totality.bend as Totality
417def allocated_retains(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan, left: Core.Dynamic, right: Core.Dynamic,
418 result: Result<&2, &1, Core.Error, Core.Tensor<Shape.output_shape(plan)>>) ->
419 Totality.Retention<left, right, Elementwise.allocated(operation, plan, left, right, result)>:
420 match result:
421 case Fail{error}:
422 Totality.Retention{property => {==}, property => {==}}
423 case Done{output}:
424 loop_retains(Shape.elements(Shape.output_shape(plan)), operation, plan, 0n, left, right, Elementwise.State{left, right, output}, property => {==}, property => {==})
Uses (12)
Used by (0)
No other definition uses this definition.