Packages

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.fair or com.microsoft.cognitiveservices Together with model_version and 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()
Linear Supertypes
Product, Equals, Updatable[ModelProto], Message[ModelProto], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModelProto
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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.fair or com.microsoft.cognitiveservices Together with model_version and 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllMetadataProps(__vs: TraversableOnce[StringStringEntryProto]): ModelProto
  5. def addAllOpsetImport(__vs: TraversableOnce[OperatorSetIdProto]): ModelProto
  6. def addMetadataProps(__vs: StringStringEntryProto*): ModelProto
  7. def addOpsetImport(__vs: OperatorSetIdProto*): ModelProto
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clearGraph: ModelProto
  10. def clearMetadataProps: ModelProto
  11. def clearOpsetImport: ModelProto
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. def companion: ModelProto.type
    Definition Classes
    ModelProto → GeneratedMessage
  14. val docString: String
  15. val domain: String
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    ModelProto → GeneratedMessage
  20. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    ModelProto → GeneratedMessage
  21. def getGraph: GraphProto
  22. val graph: Option[GraphProto]
  23. val irVersion: Long
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def mergeFrom(_input__: CodedInputStream): ModelProto
    Definition Classes
    ModelProto → Message
  26. val metadataProps: Seq[StringStringEntryProto]
  27. val modelVersion: Long
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. val opsetImport: Seq[OperatorSetIdProto]
  32. val producerName: String
  33. val producerVersion: String
  34. final def serializedSize: Int
    Definition Classes
    ModelProto → GeneratedMessage
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  37. def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  38. def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  39. def toProtoString: String
    Definition Classes
    ModelProto → GeneratedMessage
  40. def update(ms: (Lens[ModelProto, ModelProto]) ⇒ Mutation[ModelProto]*): ModelProto
    Definition Classes
    Updatable
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  44. def withDocString(__v: String): ModelProto
  45. def withDomain(__v: String): ModelProto
  46. def withGraph(__v: GraphProto): ModelProto
  47. def withIrVersion(__v: Long): ModelProto
  48. def withMetadataProps(__v: Seq[StringStringEntryProto]): ModelProto
  49. def withModelVersion(__v: Long): ModelProto
  50. def withOpsetImport(__v: Seq[OperatorSetIdProto]): ModelProto
  51. def withProducerName(__v: String): ModelProto
  52. def withProducerVersion(__v: String): ModelProto
  53. def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  54. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    ModelProto → GeneratedMessage
  55. def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. 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

Inherited from Product

Inherited from Equals

Inherited from Updatable[ModelProto]

Inherited from Message[ModelProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped