Modulus Sym Monitors
Monitor for Solver class
- class modulus.sym.domain.monitor.pointwise.PointwiseMonitor(invar, output_names, metrics, nodes, summary_histograms='off', requires_grad=False)[source]
Bases:
<a href="#modulus.sym.domain.monitor.monitor.Monitor">Monitor</a>
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 Modulus 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.
- class modulus.sym.domain.monitor.monitor.Monitor[source]
Bases:
object
Monitor base class