Create a protobuf shape.
Get an optional input by the port name.
Get an optional input by the port name.
name of the port
optional socket for the named port
Get an optional input by the port name.
Get an optional input by the port name.
name of the port
optional socket for the named port
Get an input by the port name.
Get an input by the port name.
name of port
socket for named port
Get list of all inputs.
Get an output by the port name.
Get an output by the port name.
name of port
socket for named port
Get list of all outputs.
Add an input socket to the shape.
Add an input socket to the shape.
name of input socket
port of input socket
copy of the shape with input socket added
Add an output socket to the shape.
Add an output socket to the shape.
name of output socket
port of output socket
copy of the shape with output socket added
Get the standard input socket.
Get the standard input socket.
The standard input socket is on port "input".
standard input socket
Get the standard output socket.
Get the standard output socket.
The standard output socket is on port "output".
standard output socket
Add standard input/output sockets to the shape.
Add standard input/output sockets to the shape.
This is the same as calling WritableShape#withStandardInput and WritableShape#withStandardOutput.
name of the input socket
name of the output socket
copy of the shape with standard input/output sockets added
Add standard input socket to the shape.
Add standard input socket to the shape.
name of standard input socket
copy of the shape with standard input socket added
Add standard output socket to the shape.
Add standard output socket to the shape.
name of standard output socket
copy of the shape with standard output socket added
Trait for writable interface to a Shape.
Use this trait when serializing a Shape object, such as when writing a Node to a Bundle.ML file.