Solver Interface#
Module for the solver interface.
- class SolverInterface(*args: Any, **kwargs: Any)[source]
Bases:
LightningModuleAbstract base class for PINA solvers. All specific solvers must inherit from this interface. This class extends
LightningModule, providing additional functionalities for defining and optimizing Deep Learning models.By inheriting from this base class, solvers gain access to built-in training loops, logging utilities, and optimization techniques.
- abstract training_step(batch, batch_idx)[source]
Solver training step.
- abstract validation_step(batch, batch_idx)[source]
Solver validation step.
- abstract test_step(batch, batch_idx)[source]
Solver test step.
- abstract property problem
The problem instance.
- Returns:
The problem instance.
- Return type:
BaseProblem
- abstract property use_lt
Using LabelTensors as input during training.
- Returns:
The use_lt attribute.
- Return type:
- abstract property weighting
The weighting schema used by the solver.
- Returns:
The weighting schema used by the solver.
- Return type:
BaseWeighting
- abstract property loss
The element-wise loss module used by the solver.
- Returns:
The element-wise loss module used by the solver.
- Return type: