Add an operation node to the active graph.
opr(call, grads, args, name = NULL)
symbol, operation performed by the node.
list of symbols, gradients functions of the input nodes that are consumed by the operation in argument call
.
list of cg_node objects, the nodes that are consumed by the operation in argument call
.
character scalar, name of the node (optional). In case argument name
is missing, the node is tried to be added to the graph under an auto-generated name.
cg_node, operation.