Package onnx

Interface Onnx.TypeProto.TensorOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Onnx.TensorProto.DataType getElemType()
      This field MUST NOT have the value of UNDEFINED This field MUST be present for this version of the IR.
      Onnx.TensorShapeProto getShape()
      optional .onnx.TensorShapeProto shape = 2;
      Onnx.TensorShapeProtoOrBuilder getShapeOrBuilder()
      optional .onnx.TensorShapeProto shape = 2;
      boolean hasElemType()
      This field MUST NOT have the value of UNDEFINED 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 Detail

      • hasElemType

        boolean hasElemType()
         This field MUST NOT have the value of UNDEFINED
         This field MUST be present for this version of the IR.
         
        optional .onnx.TensorProto.DataType elem_type = 1;
        Returns:
        Whether the elemType field is set.
      • getElemType

        Onnx.TensorProto.DataType getElemType()
         This field MUST NOT have the value of UNDEFINED
         This field MUST be present for this version of the IR.
         
        optional .onnx.TensorProto.DataType elem_type = 1;
        Returns:
        The elemType.
      • hasShape

        boolean hasShape()
        optional .onnx.TensorShapeProto shape = 2;
        Returns:
        Whether the shape field is set.
      • getShape

        Onnx.TensorShapeProto getShape()
        optional .onnx.TensorShapeProto shape = 2;
        Returns:
        The shape.