def attach

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

import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage

80def attach(+shape: Shape.Shape, storage: Storage.Storage) -> Result<&2, &1, Error, Tensor<shape>>:
81  attach_length(shape, storage, Storage.length(storage), {==})

Uses (7)

Used by (6)