Package inference

Interface GrpcPredictV2.InferTensorContentsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GrpcPredictV2.InferTensorContents, GrpcPredictV2.InferTensorContents.Builder
Enclosing class:
GrpcPredictV2

public static interface GrpcPredictV2.InferTensorContentsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getBoolContentsList

      List<Boolean> getBoolContentsList()
       Representation for BOOL data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated bool bool_contents = 1;
      Returns:
      A list containing the boolContents.
    • getBoolContentsCount

      int getBoolContentsCount()
       Representation for BOOL data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated bool bool_contents = 1;
      Returns:
      The count of boolContents.
    • getBoolContents

      boolean getBoolContents(int index)
       Representation for BOOL data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated bool bool_contents = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The boolContents at the given index.
    • getIntContentsList

      List<Integer> getIntContentsList()
       Representation for INT8, INT16, and INT32 data types. The size
       must match what is expected by the tensor's shape. The contents
       must be the flattened, one-dimensional, row-major order of the
       tensor elements.
       
      repeated int32 int_contents = 2;
      Returns:
      A list containing the intContents.
    • getIntContentsCount

      int getIntContentsCount()
       Representation for INT8, INT16, and INT32 data types. The size
       must match what is expected by the tensor's shape. The contents
       must be the flattened, one-dimensional, row-major order of the
       tensor elements.
       
      repeated int32 int_contents = 2;
      Returns:
      The count of intContents.
    • getIntContents

      int getIntContents(int index)
       Representation for INT8, INT16, and INT32 data types. The size
       must match what is expected by the tensor's shape. The contents
       must be the flattened, one-dimensional, row-major order of the
       tensor elements.
       
      repeated int32 int_contents = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The intContents at the given index.
    • getInt64ContentsList

      List<Long> getInt64ContentsList()
       Representation for INT64 data types. The size must match what
       is expected by the tensor's shape. The contents must be the
       flattened, one-dimensional, row-major order of the tensor elements.
       
      repeated int64 int64_contents = 3;
      Returns:
      A list containing the int64Contents.
    • getInt64ContentsCount

      int getInt64ContentsCount()
       Representation for INT64 data types. The size must match what
       is expected by the tensor's shape. The contents must be the
       flattened, one-dimensional, row-major order of the tensor elements.
       
      repeated int64 int64_contents = 3;
      Returns:
      The count of int64Contents.
    • getInt64Contents

      long getInt64Contents(int index)
       Representation for INT64 data types. The size must match what
       is expected by the tensor's shape. The contents must be the
       flattened, one-dimensional, row-major order of the tensor elements.
       
      repeated int64 int64_contents = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The int64Contents at the given index.
    • getUintContentsList

      List<Integer> getUintContentsList()
       Representation for UINT8, UINT16, and UINT32 data types. The size
       must match what is expected by the tensor's shape. The contents
       must be the flattened, one-dimensional, row-major order of the
       tensor elements.
       
      repeated uint32 uint_contents = 4;
      Returns:
      A list containing the uintContents.
    • getUintContentsCount

      int getUintContentsCount()
       Representation for UINT8, UINT16, and UINT32 data types. The size
       must match what is expected by the tensor's shape. The contents
       must be the flattened, one-dimensional, row-major order of the
       tensor elements.
       
      repeated uint32 uint_contents = 4;
      Returns:
      The count of uintContents.
    • getUintContents

      int getUintContents(int index)
       Representation for UINT8, UINT16, and UINT32 data types. The size
       must match what is expected by the tensor's shape. The contents
       must be the flattened, one-dimensional, row-major order of the
       tensor elements.
       
      repeated uint32 uint_contents = 4;
      Parameters:
      index - The index of the element to return.
      Returns:
      The uintContents at the given index.
    • getUint64ContentsList

      List<Long> getUint64ContentsList()
       Representation for UINT64 data types. The size must match what
       is expected by the tensor's shape. The contents must be the
       flattened, one-dimensional, row-major order of the tensor elements.
       
      repeated uint64 uint64_contents = 5;
      Returns:
      A list containing the uint64Contents.
    • getUint64ContentsCount

      int getUint64ContentsCount()
       Representation for UINT64 data types. The size must match what
       is expected by the tensor's shape. The contents must be the
       flattened, one-dimensional, row-major order of the tensor elements.
       
      repeated uint64 uint64_contents = 5;
      Returns:
      The count of uint64Contents.
    • getUint64Contents

      long getUint64Contents(int index)
       Representation for UINT64 data types. The size must match what
       is expected by the tensor's shape. The contents must be the
       flattened, one-dimensional, row-major order of the tensor elements.
       
      repeated uint64 uint64_contents = 5;
      Parameters:
      index - The index of the element to return.
      Returns:
      The uint64Contents at the given index.
    • getFp32ContentsList

      List<Float> getFp32ContentsList()
       Representation for FP32 data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated float fp32_contents = 6;
      Returns:
      A list containing the fp32Contents.
    • getFp32ContentsCount

      int getFp32ContentsCount()
       Representation for FP32 data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated float fp32_contents = 6;
      Returns:
      The count of fp32Contents.
    • getFp32Contents

      float getFp32Contents(int index)
       Representation for FP32 data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated float fp32_contents = 6;
      Parameters:
      index - The index of the element to return.
      Returns:
      The fp32Contents at the given index.
    • getFp64ContentsList

      List<Double> getFp64ContentsList()
       Representation for FP64 data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated double fp64_contents = 7;
      Returns:
      A list containing the fp64Contents.
    • getFp64ContentsCount

      int getFp64ContentsCount()
       Representation for FP64 data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated double fp64_contents = 7;
      Returns:
      The count of fp64Contents.
    • getFp64Contents

      double getFp64Contents(int index)
       Representation for FP64 data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated double fp64_contents = 7;
      Parameters:
      index - The index of the element to return.
      Returns:
      The fp64Contents at the given index.
    • getBytesContentsList

      List<com.google.protobuf.ByteString> getBytesContentsList()
       Representation for BYTES data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated bytes bytes_contents = 8;
      Returns:
      A list containing the bytesContents.
    • getBytesContentsCount

      int getBytesContentsCount()
       Representation for BYTES data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated bytes bytes_contents = 8;
      Returns:
      The count of bytesContents.
    • getBytesContents

      com.google.protobuf.ByteString getBytesContents(int index)
       Representation for BYTES data type. The size must match what is
       expected by the tensor's shape. The contents must be the flattened,
       one-dimensional, row-major order of the tensor elements.
       
      repeated bytes bytes_contents = 8;
      Parameters:
      index - The index of the element to return.
      Returns:
      The bytesContents at the given index.