Class Shape.Builder

  • Enclosing class:
    Shape

    public static final class Shape.Builder
    extends java.lang.Object
    The builder for a tensor shape. It has to be instantiated with a set of dimensions and provides methods to add positions to the shape. It is only allowed to add positions which provide exactly one coordinate per dimension as given in the constructor of the builder. To create a shape finally, the build() method has to be called.

    This class is not thread safe!