def expected_indices_view

bendtorch-core@0.1.0.0 · src/tensor/projection_PROOF.bend:73

import bendtorch-core@0.1.0.0/src/tensor/projection_PROOF.bend as ProjectionPROOF
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
import bendtorch-core@0.1.0.0/src/tensor/projection_LAWS.bend as Laws

73def expected_indices_view(+operation: Elementwise.Operation, -left: Core.Dynamic, -right: Core.Dynamic,
74  result: Result<&2, &1, Core.Error, U32 & U32>) ->
75  {Elementwise.expected_indices(operation, left, right, result) ==
76    Laws.specified_expected(operation, left, right, Laws.indices_result(result)) : Maybe<&2, F32>}:
77  match result:
78    case Fail{error}:
79      {==}
80    case Done{indices}:
81      (left_index, right_index) = indices
82      {==}

Uses (12)

Used by (1)