def logical_length

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

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/tensor/lifecycle.bend as Lifecycle

33def logical_length(-shape: Shape.Shape, tensor: Tensor<shape>) -> Nat:
34  TTensor{storage, exact} = tensor
35  Lifecycle.logical_length(storage)

Uses (4)

Used by (9)