lu-group / pinn-sampling

Non-adaptive and residual-based adaptive sampling for PINNs
Apache License 2.0
47 stars 12 forks source link

Looking for help: a problem has arisen when running the code. #4

Open Xiaojiuwo168 opened 1 year ago

Xiaojiuwo168 commented 1 year ago

Hello,@lululxvi @MinZhu123 @ChenxiWu123 Thanks for sharing your code, I am encountering a problem as shown below when running the code. "AttributeError: module 'deepxde.callbacks' has no attribute 'PDEResidualResampler'" in Random_R.py. I am using TensorFlow 2.7.0. What should I do to solve this problem, I am looking forward to receiving your help. Thank you very much!

lululxvi commented 1 year ago

Use PDEPointResampler https://deepxde.readthedocs.io/en/latest/modules/deepxde.html#deepxde.callbacks.PDEPointResampler

Xiaojiuwo168 commented 1 year ago

Thank you for your response, the problem has been successfully resolved with your help.

Best wishes!