def clone
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Coreimport 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)
- bendtorch-core@0.1.0.0/src/tensor/core:clone_dynamic
- bendtorch-core@0.1.0.0/src/autograd/sum_to_size:decided
- bendtorch-core@0.1.0.0/src/autograd/sum_to_size_fold_PROOF:clone_lift
- bendtorch-core@0.1.0.0/src/tensor/construction_LAWS:CloneMeaning
- bendtorch-core@0.1.0.0/src/tensor/observation:clone_first_length
- …