Package ai.onnx.proto
Interface OnnxMl.TypeProto.TensorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OnnxMl.TypeProto.Tensor
,OnnxMl.TypeProto.Tensor.Builder
- Enclosing class:
- OnnxMl.TypeProto
public static interface OnnxMl.TypeProto.TensorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionint
This field MUST NOT have the value of UNDEFINED This field MUST have a valid TensorProto.DataType value This field MUST be present for this version of the IR.getShape()
optional .onnx.TensorShapeProto shape = 2;
optional .onnx.TensorShapeProto shape = 2;
boolean
This field MUST NOT have the value of UNDEFINED This field MUST have a valid TensorProto.DataType value This field MUST be present for this version of the IR.boolean
hasShape()
optional .onnx.TensorShapeProto shape = 2;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasElemType
boolean hasElemType()This field MUST NOT have the value of UNDEFINED This field MUST have a valid TensorProto.DataType value This field MUST be present for this version of the IR.
optional int32 elem_type = 1;
- Returns:
- Whether the elemType field is set.
-
getElemType
int getElemType()This field MUST NOT have the value of UNDEFINED This field MUST have a valid TensorProto.DataType value This field MUST be present for this version of the IR.
optional int32 elem_type = 1;
- Returns:
- The elemType.
-
hasShape
boolean hasShape()optional .onnx.TensorShapeProto shape = 2;
- Returns:
- Whether the shape field is set.
-
getShape
OnnxMl.TensorShapeProto getShape()optional .onnx.TensorShapeProto shape = 2;
- Returns:
- The shape.
-
getShapeOrBuilder
OnnxMl.TensorShapeProtoOrBuilder getShapeOrBuilder()optional .onnx.TensorShapeProto shape = 2;
-