def clone_first_checked

bendtorch-core@0.1.0.0 · src/tensor/construction_LAWS.bend:6

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

6def clone_first_checked(-shape: Shape.Shape, pair: Core.Tensor<shape> & Core.Tensor<shape>, index: U32) -> Maybe<&2, F32>:
7  (first, second) = pair
8  Core.checked_observe(shape, first, index)

Uses (8)

Used by (4)