Uses of Class
ai.beestream.jitnn.Shape

Packages that use Shape
Package
Description
The jitNN API: Tensor (n-dimensional arrays, lazy on TornadoVM devices), reverse-mode differentiation (Tensor.backward(), Grad), the functional operators of F, linear algebra (Linalg), Fourier transforms (Fft), sparse matrices (SparseMatrix), mixed precision (Autocast) and user-defined operators (CustomOp).
  • Uses of Shape in ai.beestream.jitnn

    Methods in ai.beestream.jitnn that return Shape
    Modifier and Type
    Method
    Description
    static Shape
    Shape.broadcast(Shape a, Shape b)
    NumPy broadcasting of two shapes.
    CustomOp.OutputShape.of(Tensor[] inputs, int[] iattr)
    The output's shape for these inputs and integer attributes.
    static Shape
    Shape.of(int... dims)
    The shape with the given sizes (the array is copied).
    Shape.reduce(int axis, boolean keepDim)
    The shape with axis removed (keepDim=false) or set to 1 (keepDim=true).
    static Shape
    Shape.scalar()
    The rank-0 shape: a scalar with one element.
    Tensor.shape()
    The shape of this tensor.
    Methods in ai.beestream.jitnn with parameters of type Shape
    Modifier and Type
    Method
    Description
    static Tensor
    Tensor.alias(Tensor base, Shape shape)
    A tensor that shares base's storage under another shape.
    static Shape
    Shape.broadcast(Shape a, Shape b)
    NumPy broadcasting of two shapes.
    int[]
    Shape.broadcastStrides(Shape target)
    Strides for reading a tensor of this shape as if it had shape target: broadcast dimensions get stride 0.
    Tensor.expand(Shape target)
    Broadcast copy to target shape.
    static Tensor
    Tensor.result(Shape shape, DType dtype)
    An output tensor for an operator; its storage is allocated when the operator runs.
    Tensor.sumTo(Shape target)
    Sums broadcast dimensions away so the result has target shape (gradient of broadcasting).