final case class ModelProto(irVersion: Long = 0L, opsetImport: Seq[OperatorSetIdProto] = _root_.scala.collection.Seq.empty, producerName: String = "", producerVersion: String = "", domain: String = "", modelVersion: Long = 0L, docString: String = "", graph: Option[GraphProto] = None, metadataProps: Seq[StringStringEntryProto] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[ModelProto] with Updatable[ModelProto] with Product with Serializable
Models
ModelProto is a top-level file/container format for bundling a ML model and associating its computation graph with metadata.
The semantics of the model are described by the associated GraphProto.
- irVersion
The version of the IR this model targets. See Version enum above. This field MUST be present.
- opsetImport
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
- producerName
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
- producerVersion
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
- domain
Domain name of the model. We use reverse domain names as name space indicators. For example:
com.facebook.fairorcom.microsoft.cognitiveservicesTogether withmodel_versionand GraphProto.name, this forms the unique identity of the graph.- modelVersion
The version of the graph encoded. See Version enum below.
- docString
A human-readable documentation for this model. Markdown is allowed.
- graph
The parameterized graph that is evaluated to execute the model.
- metadataProps
Named metadata values; keys should be distinct.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- ModelProto
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ModelProto(irVersion: Long = 0L, opsetImport: Seq[OperatorSetIdProto] = _root_.scala.collection.Seq.empty, producerName: String = "", producerVersion: String = "", domain: String = "", modelVersion: Long = 0L, docString: String = "", graph: Option[GraphProto] = None, metadataProps: Seq[StringStringEntryProto] = _root_.scala.collection.Seq.empty)
- irVersion
The version of the IR this model targets. See Version enum above. This field MUST be present.
- opsetImport
The OperatorSets this model relies on. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported. All nodes in the ModelProto's graph will bind against the operator with the same-domain/same-op_type operator with the HIGHEST version in the referenced operator sets.
- producerName
The name of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
- producerVersion
The version of the framework or tool used to generate this model. This field SHOULD be present to indicate which implementation/tool/framework emitted the model.
- domain
Domain name of the model. We use reverse domain names as name space indicators. For example:
com.facebook.fairorcom.microsoft.cognitiveservicesTogether withmodel_versionand GraphProto.name, this forms the unique identity of the graph.- modelVersion
The version of the graph encoded. See Version enum below.
- docString
A human-readable documentation for this model. Markdown is allowed.
- graph
The parameterized graph that is evaluated to execute the model.
- metadataProps
Named metadata values; keys should be distinct.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllMetadataProps(__vs: TraversableOnce[StringStringEntryProto]): ModelProto
- def addAllOpsetImport(__vs: TraversableOnce[OperatorSetIdProto]): ModelProto
- def addMetadataProps(__vs: StringStringEntryProto*): ModelProto
- def addOpsetImport(__vs: OperatorSetIdProto*): ModelProto
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearGraph: ModelProto
- def clearMetadataProps: ModelProto
- def clearOpsetImport: ModelProto
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
companion: ModelProto.type
- Definition Classes
- ModelProto → GeneratedMessage
- val docString: String
- val domain: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- ModelProto → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- ModelProto → GeneratedMessage
- def getGraph: GraphProto
- val graph: Option[GraphProto]
- val irVersion: Long
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mergeFrom(_input__: CodedInputStream): ModelProto
- Definition Classes
- ModelProto → Message
- val metadataProps: Seq[StringStringEntryProto]
- val modelVersion: Long
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val opsetImport: Seq[OperatorSetIdProto]
- val producerName: String
- val producerVersion: String
-
final
def
serializedSize: Int
- Definition Classes
- ModelProto → GeneratedMessage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- ModelProto → GeneratedMessage
-
def
update(ms: (Lens[ModelProto, ModelProto]) ⇒ Mutation[ModelProto]*): ModelProto
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withDocString(__v: String): ModelProto
- def withDomain(__v: String): ModelProto
- def withGraph(__v: GraphProto): ModelProto
- def withIrVersion(__v: Long): ModelProto
- def withMetadataProps(__v: Seq[StringStringEntryProto]): ModelProto
- def withModelVersion(__v: Long): ModelProto
- def withOpsetImport(__v: Seq[OperatorSetIdProto]): ModelProto
- def withProducerName(__v: String): ModelProto
- def withProducerVersion(__v: String): ModelProto
-
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- ModelProto → GeneratedMessage
-
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
getAllFields: Map[FieldDescriptor, Any]
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use toPMessage
-
def
getField(field: FieldDescriptor): Any
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue