You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use custom arguments in my boundary conditions. I tried the below code and it gives error. This is a simple example. In the next step, I would like to use custom parameters along with input_ parameter in my boundary condition.
Hello 👋🏻 Please take a look at issue #225 , specifically this answer could help.
I would avoid defining an __init__ and use either static variables. The value of these variables can always be changed during training by:
# update
from pytorch_lightning.callbacks import Callback
class Update(Callback):
def on_train_epoch_end(self, trainer, __):
trainer.solver.problem.__class__.[STATIC VARIABLE NAME] = ...
For more on callbacks and where to put them have a look at the lightning documentation, it is just an extra argument of the Trainer!
Let me know how it goes and if you like the package leave us a star ⭐️ which helps us grow the community!😄
I want to use custom arguments in my boundary conditions. I tried the below code and it gives error. This is a simple example. In the next step, I would like to use custom parameters along with input_ parameter in my boundary condition.
Is there a tutorial for implementing such a type?
The text was updated successfully, but these errors were encountered: