Package onnx
Interface Onnx.TypeProto.TensorOrBuilder
-
- All Superinterfaces:
org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Onnx.TypeProto.Tensor,Onnx.TypeProto.Tensor.Builder
- Enclosing class:
- Onnx.TypeProto
public static interface Onnx.TypeProto.TensorOrBuilder 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.Onnx.TensorShapeProtogetShape().onnx.TensorShapeProto shape = 2;Onnx.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
Onnx.TensorShapeProto getShape()
.onnx.TensorShapeProto shape = 2;- Returns:
- The shape.
-
getShapeOrBuilder
Onnx.TensorShapeProtoOrBuilder getShapeOrBuilder()
.onnx.TensorShapeProto shape = 2;
-
-