def axis
import bendtorch-core@0.1.0.0/src/tensor/gather_LAWS.bend as GatherLAWSimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
21# The axis a request names: its signed dim wrapped among the input's rank.
22def axis(+input: Shape.Shape, dim: Signed.Position) -> Nat:
23 U32.to_nat(Signed.wrap(Shape.rank(input), dim))
Uses (6)
Used by (9)
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_axis_refused
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_count_refused
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_out_of_range
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_planned
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_rank_refused
- …