opto.trace.broadcast.apply_op#
- apply_op(op, output, *args, **kwargs)[source]#
A broadcasting operation that applies an op to container of Nodes.
- Parameters:
op (callable) – the operator to be applied.
output (Any) – the container to be updated.
*args (Any) – the positional inputs of the operator.
**kwargs (Any) – the keyword inputs of the operator.