Skip to content

Commit 2841ab5

Browse files
fix codacy
1 parent c64cbd4 commit 2841ab5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pina/solver/solver.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,13 @@ def __init__(
502502
self._pina_optimizers = optimizers
503503
self._pina_schedulers = schedulers
504504

505-
# set automatic optimization to True, this is done on purpuse to trigger
506-
# an error if the user does not uses manual optimization in the
507-
# training step. The following must be override to False and manual
508-
# optimization should be used. For more insights on manual optimization
509-
# see https://lightning.ai/docs/pytorch/stable/model/manual_optimization.html
505+
# set automatic optimization to True.
506+
# This is done on purpuse to ensure that an error is triggered whenever
507+
# the user does not use manual optimization in the training step.
508+
# The following must be overridden to False as manual optimization must
509+
# be used for multisolvers.
510+
# For more information on manual optimization see:
511+
# http://lightning.ai/docs/pytorch/stable/model/manual_optimization.html
510512
self.automatic_optimization = True
511513

512514
def configure_optimizers(self):

0 commit comments

Comments
 (0)