def pick_expected

bendtorch-core@0.1.0.0 · src/tensor/elementwise_parallel_proof.bend:405

import bendtorch-core@0.1.0.0/src/tensor/elementwise_parallel_proof.bend as ElementwiseParallelProof
import Base
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

405def pick_expected(+operation: Elementwise.Operation, value: Maybe<&2, F32>, -right: Core.Dynamic, -right_index: U32, -other: Maybe<&2, F32>,
406  same: {other == Core.checked_observe_dynamic(right, right_index) : Maybe<&2, F32>}) ->
407  {pick(operation, value, other) == Elementwise.expected_left(operation, right, right_index, value) : Maybe<&2, F32>}:
408  match value:
409    case None{}:
410      {==}
411    case Some{value}:
412      %same : {Elementwise.expected_right(operation, value, other) == Elementwise.expected_right(operation, value, _) : Maybe<&2, F32>}
413      {==}

Uses (9)

Used by (1)