Package onnx

Class OnnxOperators.OperatorProto

  • All Implemented Interfaces:
    Serializable, OnnxOperators.OperatorProtoOrBuilder, 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.OperatorProto
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements OnnxOperators.OperatorProtoOrBuilder
     An OperatorProto represents the immutable specification of the signature
     and semantics of an operator.
     Operators are declared as part of an OperatorSet, which also defines the
     domain name for the set.
     Operators are uniquely identified by a three part identifier
       (domain, op_type, since_version)
     where
       *domain* is the domain of an operator set that
          contains this operator specification.
       *op_type* is the name of the operator as referenced by a
          NodeProto.op_type
       *since_version* is the version of the operator set that
          this operator was initially declared in.
     
    Protobuf type onnx.OperatorProto
    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
      • getOpTypeBytes

        public org.nd4j.shade.protobuf.ByteString getOpTypeBytes()
         The name of the operator within a domain.
         This field MUST be present in this version of the IR.
         
        string op_type = 1;
        Specified by:
        getOpTypeBytes in interface OnnxOperators.OperatorProtoOrBuilder
        Returns:
        The bytes for opType.
      • getSinceVersion

        public long getSinceVersion()
         The version of the operator set that first introduced this
         operator. This value MUST be the same value as the
         opset_version of the operator set that first published this operator.
         Subsequent versions of the operator set MUST NOT alter the signature
         or semantics of the operator once published as STABLE.
         This field MUST be present in this version of the IR.
         
        int64 since_version = 2;
        Specified by:
        getSinceVersion in interface OnnxOperators.OperatorProtoOrBuilder
        Returns:
        The sinceVersion.
      • getStatusValue

        public int getStatusValue()
         This field indicates whether the syntax, semantics, or presence
         of this operator is in an experimental or stable stage. Once an
         operator is published as STABLE, it's syntax and semantics MUST NOT
         change in subsequent versions of the operator set.
         When an operator is published as EXPERIMENTAL, the syntax and semantics
         of the operator MAY change across operator set versions.
         Operators "become" stable by deprecating the experimental version and
         introducing a new stable operator with the same op_type.
         
        .onnx.OperatorStatus status = 3;
        Specified by:
        getStatusValue in interface OnnxOperators.OperatorProtoOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • getStatus

        public Onnx.OperatorStatus getStatus()
         This field indicates whether the syntax, semantics, or presence
         of this operator is in an experimental or stable stage. Once an
         operator is published as STABLE, it's syntax and semantics MUST NOT
         change in subsequent versions of the operator set.
         When an operator is published as EXPERIMENTAL, the syntax and semantics
         of the operator MAY change across operator set versions.
         Operators "become" stable by deprecating the experimental version and
         introducing a new stable operator with the same op_type.
         
        .onnx.OperatorStatus status = 3;
        Specified by:
        getStatus in interface OnnxOperators.OperatorProtoOrBuilder
        Returns:
        The status.
      • getDocStringBytes

        public org.nd4j.shade.protobuf.ByteString getDocStringBytes()
         A human-readable documentation for this operator. Markdown is allowed.
         
        string doc_string = 10;
        Specified by:
        getDocStringBytes in interface OnnxOperators.OperatorProtoOrBuilder
        Returns:
        The bytes for docString.
      • 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.OperatorProto parseFrom​(ByteBuffer data)
                                                     throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorProto 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.OperatorProto parseFrom​(org.nd4j.shade.protobuf.ByteString data)
                                                     throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OnnxOperators.OperatorProto 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.OperatorProto parseFrom​(byte[] data)
                                                     throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public OnnxOperators.OperatorProto.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.OperatorProto.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.OperatorProto.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.OperatorProto> 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.OperatorProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder