-
I'm currently using DeepXDE for solving PDEs with a Physics-Informed Neural Network (PINN). I want to implement gradient clipping during the training process to stabilize the training and prevent exploding gradients. However, I couldn't find any direct reference to gradient clipping in the DeepXDE documentation or examples. Could you please let me know:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think not.
You can use Line 369 in 4e9a283 |
Beta Was this translation helpful? Give feedback.
I think not.
You can use
clip_grad_norm_
(PyTorch): https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_norm_.htmlApply it inside
train_step
:deepxde/deepxde/model.py
Line 369 in 4e9a283