Update MultiSolverInterface (#520)

This commit is contained in:
Dario Coscia
2025-04-07 14:13:26 +02:00
committed by GitHub
parent 4357f8681f
commit 0a60ed4c9a
3 changed files with 36 additions and 9 deletions

View File

@@ -103,9 +103,6 @@ class CompetitivePINN(PINNInterface, MultiSolverInterface):
loss=loss,
)
# Set automatic optimization to False
self.automatic_optimization = False
def forward(self, x):
"""
Forward pass.

View File

@@ -158,9 +158,6 @@ class SelfAdaptivePINN(PINNInterface, MultiSolverInterface):
loss=loss,
)
# Set automatic optimization to False
self.automatic_optimization = False
self._vectorial_loss = deepcopy(self.loss)
self._vectorial_loss.reduction = "none"