nnopinf.operators.VectorOffsetOperator#
- class nnopinf.operators.VectorOffsetOperator(n_outputs, name='VectorOffsetOperator')[source]#
Bases:
Module\(f \in \mathbb{R}^M\)
Constructs a constant vector operator, \(f \in \mathbb{R}^M\)
- Parameters:
n_outputs (int) – Output dimension of the operator, i.e.,
Min the above descriptionname (string) – Operator name. Used when saving to file
- 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.