Class PartialAddress


  • public class PartialAddress
    extends Object
    An address to a subset of a tensors' cells, specifying a label for some but not necessarily all of the tensors dimensions.
    Author:
    bratseth
    • Method Detail

      • dimension

        public String dimension​(int i)
      • numericLabel

        public long numericLabel​(String dimensionName)
        Returns the numeric label of this dimension, or -1 if no label is specified for it
      • label

        public String label​(String dimensionName)
        Returns the label of this dimension, or null if no label is specified for it
      • size

        public int size()
      • asAddress

        public TensorAddress asAddress​(TensorType type)
        Returns this as an address in the given tensor type