Package com.viam.service.mlmodel.v1
Interface Mlmodel.FlatTensorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Mlmodel.FlatTensor
,Mlmodel.FlatTensor.Builder
- Enclosing class:
- Mlmodel
public static interface Mlmodel.FlatTensorOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescription.viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
.viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
long
getShape
(int index) the shape of the provided tensor as a list of integer extentsint
the shape of the provided tensor as a list of integer extentsthe shape of the provided tensor as a list of integer extents.viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getShapeList
the shape of the provided tensor as a list of integer extents
repeated fixed64 shape = 1 [json_name = "shape"];
- Returns:
- A list containing the shape.
-
getShapeCount
int getShapeCount()the shape of the provided tensor as a list of integer extents
repeated fixed64 shape = 1 [json_name = "shape"];
- Returns:
- The count of shape.
-
getShape
long getShape(int index) the shape of the provided tensor as a list of integer extents
repeated fixed64 shape = 1 [json_name = "shape"];
- Parameters:
index
- The index of the element to return.- Returns:
- The shape at the given index.
-
hasInt8Tensor
boolean hasInt8Tensor().viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
- Returns:
- Whether the int8Tensor field is set.
-
getInt8Tensor
Mlmodel.FlatTensorDataInt8 getInt8Tensor().viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
- Returns:
- The int8Tensor.
-
hasUint8Tensor
boolean hasUint8Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
- Returns:
- Whether the uint8Tensor field is set.
-
getUint8Tensor
Mlmodel.FlatTensorDataUInt8 getUint8Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
- Returns:
- The uint8Tensor.
-
hasInt16Tensor
boolean hasInt16Tensor().viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
- Returns:
- Whether the int16Tensor field is set.
-
getInt16Tensor
Mlmodel.FlatTensorDataInt16 getInt16Tensor().viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
- Returns:
- The int16Tensor.
-
hasUint16Tensor
boolean hasUint16Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
- Returns:
- Whether the uint16Tensor field is set.
-
getUint16Tensor
Mlmodel.FlatTensorDataUInt16 getUint16Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
- Returns:
- The uint16Tensor.
-
hasInt32Tensor
boolean hasInt32Tensor().viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
- Returns:
- Whether the int32Tensor field is set.
-
getInt32Tensor
Mlmodel.FlatTensorDataInt32 getInt32Tensor().viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
- Returns:
- The int32Tensor.
-
hasUint32Tensor
boolean hasUint32Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
- Returns:
- Whether the uint32Tensor field is set.
-
getUint32Tensor
Mlmodel.FlatTensorDataUInt32 getUint32Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
- Returns:
- The uint32Tensor.
-
hasInt64Tensor
boolean hasInt64Tensor().viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
- Returns:
- Whether the int64Tensor field is set.
-
getInt64Tensor
Mlmodel.FlatTensorDataInt64 getInt64Tensor().viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
- Returns:
- The int64Tensor.
-
hasUint64Tensor
boolean hasUint64Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
- Returns:
- Whether the uint64Tensor field is set.
-
getUint64Tensor
Mlmodel.FlatTensorDataUInt64 getUint64Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
- Returns:
- The uint64Tensor.
-
hasFloatTensor
boolean hasFloatTensor().viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
- Returns:
- Whether the floatTensor field is set.
-
getFloatTensor
Mlmodel.FlatTensorDataFloat getFloatTensor().viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
- Returns:
- The floatTensor.
-
hasDoubleTensor
boolean hasDoubleTensor().viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
- Returns:
- Whether the doubleTensor field is set.
-
getDoubleTensor
Mlmodel.FlatTensorDataDouble getDoubleTensor().viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
- Returns:
- The doubleTensor.
-
getTensorCase
Mlmodel.FlatTensor.TensorCase getTensorCase()
-