Package onnx

Class OnnxOperators.OperatorSetProto

  • All Implemented Interfaces:
    Serializable, OnnxOperators.OperatorSetProtoOrBuilder, org.nd4j.shade.protobuf.Message, org.nd4j.shade.protobuf.MessageLite, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder
    Enclosing class:
    OnnxOperators

    public static final class OnnxOperators.OperatorSetProto
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements OnnxOperators.OperatorSetProtoOrBuilder
     An OperatorSetProto represents an immutable set of immutable operator
     specifications.
     The domain of the set (OperatorSetProto.domain) is a reverse-DNS name
     that disambiguates operator sets defined by independent entities.
     The version of the set (opset_version) is a monotonically increasing
     integer that indicates changes to the membership of the operator set.
     Operator sets are uniquely identified by a two part identifier (domain, opset_version)
     Like ModelProto, OperatorSetProto is intended as a top-level file/wire format,
     and thus has the standard format headers in addition to the operator set information.
     
    Protobuf type onnx.OperatorSetProto
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getMagic

        public String getMagic()
         All OperatorSetProtos start with a distingushed byte sequence to disambiguate
         protobuf files containing OperatorSets from other content.
         This field MUST be "ONNXOPSET"
         This field MUST be present in this version of the IR
         
        string magic = 1;
        Specified by:
        getMagic in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The magic.
      • getMagicBytes

        public org.nd4j.shade.protobuf.ByteString getMagicBytes()
         All OperatorSetProtos start with a distingushed byte sequence to disambiguate
         protobuf files containing OperatorSets from other content.
         This field MUST be "ONNXOPSET"
         This field MUST be present in this version of the IR
         
        string magic = 1;
        Specified by:
        getMagicBytes in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The bytes for magic.
      • getIrVersion

        public long getIrVersion()
         All OperatorSetProtos indicate the version of the IR syntax and semantics
         they adhere to. It is always IR_VERSION.
         This field MUST be present in this version of the IR
         
        int64 ir_version = 2;
        Specified by:
        getIrVersion in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The irVersion.
      • getIrVersionPrereleaseBytes

        public org.nd4j.shade.protobuf.ByteString getIrVersionPrereleaseBytes()
         The prerelease component of the SemVer of the IR.
         This field MAY be absent in this version of the IR
         
        string ir_version_prerelease = 3;
        Specified by:
        getIrVersionPrereleaseBytes in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The bytes for irVersionPrerelease.
      • getIrBuildMetadataBytes

        public org.nd4j.shade.protobuf.ByteString getIrBuildMetadataBytes()
         The build metadata component of the SemVer of the IR.
         This field MAY be absent in this version of the IR
         
        string ir_build_metadata = 7;
        Specified by:
        getIrBuildMetadataBytes in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The bytes for irBuildMetadata.
      • getDomainBytes

        public org.nd4j.shade.protobuf.ByteString getDomainBytes()
         Domain name of the operator set, in reverse DNS form (e.g., com.acme.dnnops).
         
        string domain = 4;
        Specified by:
        getDomainBytes in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The bytes for domain.
      • getOpsetVersion

        public long getOpsetVersion()
         The version of the set of operators. This is a simple int value
         that is monotonically increasing as new versions of the operator set
         are published. All operators in this set MUST have since_version
         <= opset_version.
         
        int64 opset_version = 5;
        Specified by:
        getOpsetVersion in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The opsetVersion.
      • getDocStringBytes

        public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
         A human-readable documentation for this set of operators. Markdown is allowed.
         
        string doc_string = 6;
        Specified by:
        getDocStringBytes in interface OnnxOperators.OperatorSetProtoOrBuilder
        Returns:
        The bytes for docString.
      • getOperatorCount

        public int getOperatorCount()
         The operators specified by this operator set.
         The (name, version) MUST be unique across all OperatorProtos in operator
         
        repeated .onnx.OperatorProto operator = 8;
        Specified by:
        getOperatorCount in interface OnnxOperators.OperatorSetProtoOrBuilder
      • getFunctionsCount

        public int getFunctionsCount()
         The functions specified by this operator set.
         The (name, version) MUST be unique across all OperatorProtos/FunctionProtos in operator/functions
         
        repeated .onnx.FunctionProto functions = 9;
        Specified by:
        getFunctionsCount in interface OnnxOperators.OperatorSetProtoOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(org.nd4j.shade.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        writeTo in class org.nd4j.shade.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.nd4j.shade.protobuf.Message
        Overrides:
        equals in class org.nd4j.shade.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.nd4j.shade.protobuf.Message
        Overrides:
        hashCode in class org.nd4j.shade.protobuf.AbstractMessage
      • parseFrom

        public static OnnxOperators.OperatorSetProto parseFrom​(ByteBuffer data)
                                                        throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorSetProto parseFrom​(ByteBuffer data,
                                                               org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorSetProto parseFrom​(org.nd4j.shade.protobuf.ByteString data)
                                                        throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorSetProto parseFrom​(org.nd4j.shade.protobuf.ByteString data,
                                                               org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorSetProto parseFrom​(byte[] data)
                                                        throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorSetProto parseFrom​(byte[] data,
                                                               org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public OnnxOperators.OperatorSetProto.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.MessageLite
      • toBuilder

        public OnnxOperators.OperatorSetProto.Builder toBuilder()
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.Message
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.MessageLite
      • newBuilderForType

        protected OnnxOperators.OperatorSetProto.Builder newBuilderForType​(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getParserForType

        public org.nd4j.shade.protobuf.Parser<OnnxOperators.OperatorSetProto> getParserForType()
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public OnnxOperators.OperatorSetProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder