Package onnx
Interface OnnxMl.TypeProto.SparseTensorOrBuilder
-
- All Superinterfaces:
org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OnnxMl.TypeProto.SparseTensor,OnnxMl.TypeProto.SparseTensor.Builder
- Enclosing class:
- OnnxMl.TypeProto
public static interface OnnxMl.TypeProto.SparseTensorOrBuilder extends org.nd4j.shade.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetElemType()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.OnnxMl.TensorShapeProtogetShape().onnx.TensorShapeProto shape = 2;OnnxMl.TensorShapeProtoOrBuildergetShapeOrBuilder().onnx.TensorShapeProto shape = 2;booleanhasShape().onnx.TensorShapeProto shape = 2;-
Methods inherited from interface org.nd4j.shade.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.
int32 elem_type = 1;- Returns:
- The elemType.
-
hasShape
boolean hasShape()
.onnx.TensorShapeProto shape = 2;- Returns:
- Whether the shape field is set.
-
getShape
OnnxMl.TensorShapeProto getShape()
.onnx.TensorShapeProto shape = 2;- Returns:
- The shape.
-
getShapeOrBuilder
OnnxMl.TensorShapeProtoOrBuilder getShapeOrBuilder()
.onnx.TensorShapeProto shape = 2;
-
-