Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func MustNew ¶
func MustNew() objectspec.NetworkPayload
MustNew creates either a new default configured network payload object, or panics.
func New ¶
func New(config Config) (objectspec.NetworkPayload, error)
New creates a new configured network payload object.
Types ¶
type Config ¶
type Config struct { // Args represents the arguments intended to be used for the requested CLG // execution, or the output values being calculated during the requested CLG // execution. Args []reflect.Value Context objectspec.Context // Destination represents the object ID of the CLG receiving the current // network payload. Destination string // Sources represents the object IDs of the CLGs being involved providing the // current network payload. In fact, a network payload can only be sent by // one CLG. Reason for this being a list is the merge of network payloads // until a CLG's interface is satisfied. That way multiple CLG's can request // another CLG even if they are not able to satisfy the interface of the // requested CLG on their own. This gives the neural network an opportunity // to learn to combine CLGs as desired. Sources []string }
Config represents the configuration used to create a new network payload object.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new network payload object by best effort.
Click to show internal directories.
Click to hide internal directories.