PhysicsNeMo Sym Monitors#
Pointwise Monitor#
Monitor for Solver class
- class physicsnemo.sym.domain.monitor.pointwise.PointwiseMonitor(
- invar,
- output_names,
- metrics,
- nodes,
- summary_histograms='off',
- requires_grad=False,
Bases:
Monitor
Pointwise Inferencer that allows inferencing on pointwise data
- Parameters:
invar (Dict[str, np.ndarray (N, 1)]) – Dictionary of numpy arrays as input.
output_names (List[str]) – List of outputs needed for metric.
metrics (Dict[str, Callable]) – Dictionary of pytorch functions whose input is a dictionary torch tensors whose keys are the output_names. The keys to metrics will be used to label the metrics in tensorboard/csv outputs.
nodes (List[Node]) – List of PhysicsNeMo Nodes to unroll graph with.
summary_histograms (str = "off") – The histograms of all outputs and intermediate results will be monitored and added to tensorboard. Choices are: “off”, “linear” and “log2”, default is “off”.
requires_grad (bool = False) – If automatic differentiation is needed for computing results.