Skip to content

Commit

Permalink
Merge branch 'main' of github.com:IBM/simulai
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao-L-S-Almeida committed Apr 14, 2023
2 parents dbede47 + 5236441 commit e9b435d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simulai/optimization/_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ def _seek_by_extra_trainable_parameters(
for c in residual.trainable_parameters.values()
if isinstance(c, Parameter)
]
print("There are extra trainable parameters.")
if c:
print("There are extra trainable parameters.")
return extra_parameters
else:
return None
Expand Down

0 comments on commit e9b435d

Please sign in to comment.