final case class GraphProto(node: Seq[NodeProto] = _root_.scala.Seq.empty, name: Option[String] = _root_.scala.None, initializer: Seq[TensorProto] = _root_.scala.Seq.empty, sparseInitializer: Seq[SparseTensorProto] = _root_.scala.Seq.empty, docString: Option[String] = _root_.scala.None, input: Seq[ValueInfoProto] = _root_.scala.Seq.empty, output: Seq[ValueInfoProto] = _root_.scala.Seq.empty, valueInfo: Seq[ValueInfoProto] = _root_.scala.Seq.empty, quantizationAnnotation: Seq[TensorAnnotation] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[GraphProto] with Product with Serializable

Graphs

A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs. This is the equivalent of the "network" or "graph" in many deep learning frameworks.

node

The nodes in the graph, sorted topologically.

name

The name of the graph. namespace Graph

initializer

A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.

sparseInitializer

Initializers (see above) stored in sparse format.

docString

A human-readable documentation for this graph. Markdown is allowed.

input

The inputs and outputs of the graph.

valueInfo

Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.

quantizationAnnotation

This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.

Annotations
@SerialVersionUID()
Linear Supertypes
Updatable[GraphProto], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphProto
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GraphProto(node: Seq[NodeProto] = _root_.scala.Seq.empty, name: Option[String] = _root_.scala.None, initializer: Seq[TensorProto] = _root_.scala.Seq.empty, sparseInitializer: Seq[SparseTensorProto] = _root_.scala.Seq.empty, docString: Option[String] = _root_.scala.None, input: Seq[ValueInfoProto] = _root_.scala.Seq.empty, output: Seq[ValueInfoProto] = _root_.scala.Seq.empty, valueInfo: Seq[ValueInfoProto] = _root_.scala.Seq.empty, quantizationAnnotation: Seq[TensorAnnotation] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    node

    The nodes in the graph, sorted topologically.

    name

    The name of the graph. namespace Graph

    initializer

    A list of named tensor values, used to specify constant inputs of the graph. Each initializer (both TensorProto as well SparseTensorProto) MUST have a name. The name MUST be unique across both initializer and sparse_initializer, but the name MAY also appear in the input list.

    sparseInitializer

    Initializers (see above) stored in sparse format.

    docString

    A human-readable documentation for this graph. Markdown is allowed.

    input

    The inputs and outputs of the graph.

    valueInfo

    Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.

    quantizationAnnotation

    This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor 'a', it may have {'SCALE_TENSOR', 'a_scale'} and {'ZERO_POINT_TENSOR', 'a_zero_point'} annotated, which means, tensor 'a_scale' and tensor 'a_zero_point' are scale and zero point of tensor 'a' in the model.

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 addAllInitializer(__vs: Iterable[TensorProto]): GraphProto
  5. def addAllInput(__vs: Iterable[ValueInfoProto]): GraphProto
  6. def addAllNode(__vs: Iterable[NodeProto]): GraphProto
  7. def addAllOutput(__vs: Iterable[ValueInfoProto]): GraphProto
  8. def addAllQuantizationAnnotation(__vs: Iterable[TensorAnnotation]): GraphProto
  9. def addAllSparseInitializer(__vs: Iterable[SparseTensorProto]): GraphProto
  10. def addAllValueInfo(__vs: Iterable[ValueInfoProto]): GraphProto
  11. def addInitializer(__vs: TensorProto*): GraphProto
  12. def addInput(__vs: ValueInfoProto*): GraphProto
  13. def addNode(__vs: NodeProto*): GraphProto
  14. def addOutput(__vs: ValueInfoProto*): GraphProto
  15. def addQuantizationAnnotation(__vs: TensorAnnotation*): GraphProto
  16. def addSparseInitializer(__vs: SparseTensorProto*): GraphProto
  17. def addValueInfo(__vs: ValueInfoProto*): GraphProto
  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. def clearDocString: GraphProto
  20. def clearInitializer: GraphProto
  21. def clearInput: GraphProto
  22. def clearName: GraphProto
  23. def clearNode: GraphProto
  24. def clearOutput: GraphProto
  25. def clearQuantizationAnnotation: GraphProto
  26. def clearSparseInitializer: GraphProto
  27. def clearValueInfo: GraphProto
  28. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  29. def companion: GraphProto.type
    Definition Classes
    GraphProto → GeneratedMessage
  30. def discardUnknownFields: GraphProto
  31. val docString: Option[String]
  32. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  34. def getDocString: String
  35. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    GraphProto → GeneratedMessage
  36. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    GraphProto → GeneratedMessage
  37. def getName: String
  38. val initializer: Seq[TensorProto]
  39. val input: Seq[ValueInfoProto]
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. val name: Option[String]
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. val node: Seq[NodeProto]
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  46. val output: Seq[ValueInfoProto]
  47. def productElementNames: Iterator[String]
    Definition Classes
    Product
  48. val quantizationAnnotation: Seq[TensorAnnotation]
  49. def serializedSize: Int
    Definition Classes
    GraphProto → GeneratedMessage
  50. val sparseInitializer: Seq[SparseTensorProto]
  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  53. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  54. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  55. def toProtoString: String
    Definition Classes
    GraphProto → GeneratedMessage
  56. val unknownFields: UnknownFieldSet
  57. def update(ms: (Lens[GraphProto, GraphProto]) => Mutation[GraphProto]*): GraphProto
    Definition Classes
    Updatable
  58. val valueInfo: Seq[ValueInfoProto]
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. def withDocString(__v: String): GraphProto
  63. def withInitializer(__v: Seq[TensorProto]): GraphProto
  64. def withInput(__v: Seq[ValueInfoProto]): GraphProto
  65. def withName(__v: String): GraphProto
  66. def withNode(__v: Seq[NodeProto]): GraphProto
  67. def withOutput(__v: Seq[ValueInfoProto]): GraphProto
  68. def withQuantizationAnnotation(__v: Seq[TensorAnnotation]): GraphProto
  69. def withSparseInitializer(__v: Seq[SparseTensorProto]): GraphProto
  70. def withUnknownFields(__v: UnknownFieldSet): GraphProto
  71. def withValueInfo(__v: Seq[ValueInfoProto]): GraphProto
  72. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  73. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    GraphProto → GeneratedMessage
  74. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Updatable[GraphProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped