def clone_second_value
bendtorch-core@0.1.0.0 · src/tensor/observation.bend:248
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
248def clone_second_value(-shape: Shape.Shape, +other: U32, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, F32>:
249 match result:
250 case Fail{error}:
251 None{}
252 case Done{tensor}:
253 clone_second_value_pair(shape, other, Core.clone(shape, tensor))