nnopinf.operators.Operator#
- class nnopinf.operators.Operator(*args, **kwargs)[source]#
Bases:
ProtocolProtocol for operator class.
- forward(inputs, return_jacobian=False)[source]#
Forward pass of operator
- Parameters:
inputs (dict(str, np.array)) – Dictionary of input data in the form of arrays referenced by the variable name, i.e., inputs[‘x’] = np.ones(3)
return_jacobian (bool, optional) – If True, return the (approximate) Jacobian in addition to the output.