def clone

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

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

340def clone(-shape: Shape.Shape, tensor: Tensor<shape>) -> Tensor<shape> & Tensor<shape>:
341  TTensor{storage, valid} = tensor
342  clone_result(shape, storage, valid, Storage.clone(storage), {==})

Uses (5)

Used by (26)