Interface TensorShapeProto.DimOrBuilder

  • All Superinterfaces:
    org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TensorShapeProto.Dim, TensorShapeProto.Dim.Builder
    Enclosing class:
    TensorShapeProto

    public static interface TensorShapeProto.DimOrBuilder
    extends org.nd4j.shade.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getName()
      Optional name of the tensor dimension.
      org.nd4j.shade.protobuf.ByteString getNameBytes()
      Optional name of the tensor dimension.
      long getSize()
      Size of the tensor in that dimension.
      • Methods inherited from interface org.nd4j.shade.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface org.nd4j.shade.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getSize

        long getSize()
         Size of the tensor in that dimension.
         This value must be >= -1, but values of -1 are reserved for "unknown"
         shapes (values of -1 mean "unknown" dimension).  Certain wrappers
         that work with TensorShapeProto may fail at runtime when deserializing
         a TensorShapeProto containing a dim value of -1.
         
        int64 size = 1;
        Returns:
        The size.
      • getName

        String getName()
         Optional name of the tensor dimension.
         
        string name = 2;
        Returns:
        The name.
      • getNameBytes

        org.nd4j.shade.protobuf.ByteString getNameBytes()
         Optional name of the tensor dimension.
         
        string name = 2;
        Returns:
        The bytes for name.