NodeProto

onnx.onnx.NodeProto
See theNodeProto companion object
final case class NodeProto(input: Seq[String], output: Seq[String], name: Option[String], opType: Option[String], domain: Option[String], attribute: Seq[AttributeProto], docString: Option[String], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[NodeProto]

Nodes

Computation graphs are made up of a DAG of nodes, which represent what is commonly called a "layer" or "pipeline stage" in machine learning frameworks.

For example, it can be a node of type "Conv" that takes in an image, a filter tensor and a bias tensor, and produces the convolved output.

Value parameters

attribute

Additional named attributes.

docString

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

domain

The domain of the OperatorSet that specifies the operator named by op_type. namespace Domain

input

namespace Value

name

An optional identifier for this node in a graph. This field MAY be absent in ths version of the IR. namespace Node

opType

The symbolic identifier of the Operator to execute. namespace Operator

output

namespace Value

Attributes

Companion
object
Graph
Supertypes
trait Updatable[NodeProto]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllAttribute(`__vs`: Iterable[AttributeProto]): NodeProto
def addAllInput(`__vs`: Iterable[String]): NodeProto
def addAllOutput(`__vs`: Iterable[String]): NodeProto
def addInput(`__vs`: String*): NodeProto
def addOutput(`__vs`: String*): NodeProto
def companion: NodeProto.type
def getDocString: String
def getDomain: String
def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
def getName: String
def getOpType: String
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

def withDocString(`__v`: String): NodeProto
def withDomain(`__v`: String): NodeProto
def withInput(`__v`: Seq[String]): NodeProto
def withName(`__v`: String): NodeProto
def withOpType(`__v`: String): NodeProto
def withOutput(`__v`: Seq[String]): NodeProto
def withUnknownFields(`__v`: UnknownFieldSet): NodeProto
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
def update(ms: Lens[NodeProto, NodeProto] => () => NodeProto*): A

Attributes

Inherited from:
Updatable
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage