def clone_second_count

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

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

314def clone_second_count(+shape: Shape.Shape, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, U32>:
315  match result:
316    case Fail{error}:
317      None{}
318    case Done{tensor}:
319      clone_second_count_pair(shape, Core.clone(shape, tensor))

Uses (8)

Used by (2)