Physics-Informed Mixin#
Module for the physics-informed mixin class.
- class PhysicsInformedMixin[source]
Bases:
objectMixin that enables physics-informed training by ensuring gradients are enabled during validation and testing, which is necessary for computing physics residuals.
Designed to be used in combination with any solver inheriting from
BaseSolver.- validation_step(batch, batch_idx)[source]
Solver validation step.
- test_step(batch, batch_idx)[source]
Solver test step.