def clone_first_value

bendtorch-core@0.1.0.0 · src/tensor/observation.bend:241

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

241def clone_first_value(-shape: Shape.Shape, +other: U32, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, F32>:
242  match result:
243    case Fail{error}:
244      None{}
245    case Done{tensor}:
246      clone_first_value_pair(shape, other, Core.clone(shape, tensor))

Uses (9)

Used by (3)