protobuf shape object containing the shape information
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.
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 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
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
Class for holding the input fields and output fields of a Node. The shape also holds information for connecting the input/output fields to the underlying ML model.
A Shape contains input and output sockets. Sockets map field data to certain functionality within a Model. For instance, say we want to run a "label" field through a string indexer and have the result output to the field "label_name". We could wire up the node like so:
Or more concisely:
protobuf shape object containing the shape information