def axis_of
bendtorch-core@0.1.0.0 · src/tensor/signed_LAWS.bend:314
import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/elementwise_totality.bend as Totality
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
314
315
316
317def axis_of(input: Core.Dynamic, dim: Signed.Position) -> U32:
318 Signed.wrap(Shape.rank(Totality.dynamic_shape(input)), dim)