def length

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

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

354def length(-shape: Shape.Shape, tensor: Tensor<shape>) -> Tensor<shape> & Nat:
355  TTensor{storage, valid} = tensor
356  length_result(shape, storage, valid, Storage.length(storage), {==})

Uses (6)

Used by (9)