Class TensorType.Dimension

    • Method Detail

      • name

        public final java.lang.String name()
      • size

        public abstract java.util.Optional<java.lang.Long> size()
        Returns the size of this dimension if it is bound, empty otherwise
      • withName

        public abstract TensorType.Dimension withName​(java.lang.String name)
        Returns a copy of this with the name set to the given name
      • isIndexed

        public boolean isIndexed()
        Returns true if this is an indexed bound or unbound type
      • isMapped

        public boolean isMapped()
        Returns true if this is of the mapped type
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object