def length
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
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)
- bendtorch-core@0.1.0.0/src/tensor/observation:length_owner_length
- bendtorch-core@0.1.0.0/src/tensor/observation:length_owner_value
- bendtorch-core@0.1.0.0/src/tensor/observation:length_value
- bendtorch-core@0.1.0.0/src/tensor/observation:length_owner_count
- bendtorch-core@0.1.0.0/src/tensor/observation:length_owner_dimensions
- …