def successful_observe

bendtorch-core@0.1.0.0 · src/tensor/reduction_LAWS.bend:67

import bendtorch-core@0.1.0.0/src/tensor/reduction_LAWS.bend as ReductionLAWS
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

67def successful_observe(-shape: Shape.Shape, original: Core.Tensor<shape>,
68  result: Result<&2, &1, Core.Error, Core.Tensor<shape> & F32>, +other: U32) -> Maybe<&2, F32>:
69  match result:
70    case Fail{error}:
71      None{}
72    case Done{pair}:
73      Core.checked_observe(shape, original, other)

Uses (9)

Used by (4)