Package inference

Interface GrpcService.ModelInferRequest.InferInputTensorOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GrpcService.ModelInferRequest.InferInputTensor, GrpcService.ModelInferRequest.InferInputTensor.Builder
Enclosing class:
GrpcService.ModelInferRequest

public static interface GrpcService.ModelInferRequest.InferInputTensorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
      @@
      @@    .. cpp:var:: string name
      @@
      @@       The tensor name.
      @@
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
      @@
      @@    .. cpp:var:: string name
      @@
      @@       The tensor name.
      @@
       
      string name = 1;
      Returns:
      The bytes for name.
    • getDatatype

      String getDatatype()
      @@
      @@    .. cpp:var:: string datatype
      @@
      @@       The tensor data type.
      @@
       
      string datatype = 2;
      Returns:
      The datatype.
    • getDatatypeBytes

      com.google.protobuf.ByteString getDatatypeBytes()
      @@
      @@    .. cpp:var:: string datatype
      @@
      @@       The tensor data type.
      @@
       
      string datatype = 2;
      Returns:
      The bytes for datatype.
    • getShapeList

      List<Long> getShapeList()
      @@
      @@    .. cpp:var:: int64 shape (repeated)
      @@
      @@       The tensor shape.
      @@
       
      repeated int64 shape = 3;
      Returns:
      A list containing the shape.
    • getShapeCount

      int getShapeCount()
      @@
      @@    .. cpp:var:: int64 shape (repeated)
      @@
      @@       The tensor shape.
      @@
       
      repeated int64 shape = 3;
      Returns:
      The count of shape.
    • getShape

      long getShape(int index)
      @@
      @@    .. cpp:var:: int64 shape (repeated)
      @@
      @@       The tensor shape.
      @@
       
      repeated int64 shape = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The shape at the given index.
    • getParametersCount

      int getParametersCount()
      @@    .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@       Optional inference input tensor parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • containsParameters

      boolean containsParameters(String key)
      @@    .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@       Optional inference input tensor parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • getParameters

      Deprecated.
      Use getParametersMap() instead.
    • getParametersMap

      @@    .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@       Optional inference input tensor parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • getParametersOrDefault

      GrpcService.InferParameter getParametersOrDefault(String key, GrpcService.InferParameter defaultValue)
      @@    .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@       Optional inference input tensor parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • getParametersOrThrow

      GrpcService.InferParameter getParametersOrThrow(String key)
      @@    .. cpp:var:: map<string,InferParameter> parameters
      @@
      @@       Optional inference input tensor parameters.
      @@
       
      map<string, .inference.InferParameter> parameters = 4;
    • hasContents

      boolean hasContents()
      @@    .. cpp:var:: InferTensorContents contents
      @@
      @@       The tensor contents using a data-type format. This field
      @@       must not be specified if tensor contents are being specified
      @@       in ModelInferRequest.raw_input_contents.
      @@
       
      .inference.InferTensorContents contents = 5;
      Returns:
      Whether the contents field is set.
    • getContents

      @@    .. cpp:var:: InferTensorContents contents
      @@
      @@       The tensor contents using a data-type format. This field
      @@       must not be specified if tensor contents are being specified
      @@       in ModelInferRequest.raw_input_contents.
      @@
       
      .inference.InferTensorContents contents = 5;
      Returns:
      The contents.
    • getContentsOrBuilder

      @@    .. cpp:var:: InferTensorContents contents
      @@
      @@       The tensor contents using a data-type format. This field
      @@       must not be specified if tensor contents are being specified
      @@       in ModelInferRequest.raw_input_contents.
      @@
       
      .inference.InferTensorContents contents = 5;