Open xuelanghanbao opened 1 year ago
This example is not fully supported by pytorch.
This example is not fully supported by pytorch.
Hi, @lululxvi ,In the code fractional_Poisson_2d.py, I changed the geom, but it doesn't work anymore, does it only support disk?
geom = dde.geometry.Rectangle((0, 0), (r, r))
this is an error:
Traceback (most recent call last): File "D:\PINNs\CTR_KLK\fpde\train_fpde_2d.py", line 64, in <module> data = dde.data.FPDE( File "D:\ProgramData\anaconda3\envs\tf\lib\site-packages\deepxde\data\fpde.py", line 88, in __init__ super().__init__( File "D:\ProgramData\anaconda3\envs\tf\lib\site-packages\deepxde\data\pde.py", line 127, in __init__ self.train_next_batch() File "D:\ProgramData\anaconda3\envs\tf\lib\site-packages\deepxde\data\fpde.py", line 162, in train_next_batch self.frac_train = Fractional(self.alpha, self.geom, self.disc, x_f) File "D:\ProgramData\anaconda3\envs\tf\lib\site-packages\deepxde\data\fpde.py", line 370, in __init__ self._check_dynamic_stepsize() File "D:\ProgramData\anaconda3\envs\tf\lib\site-packages\deepxde\data\fpde.py", line 377, in _check_dynamic_stepsize min_h = self.geom.mindist2boundary(self.x0) File "D:\ProgramData\anaconda3\envs\tf\lib\site-packages\deepxde\geometry\geometry.py", line 28, in mindist2boundary raise NotImplementedError( NotImplementedError: Rectangle.mindist2boundary to be implemented
@lululxvi Hey, I am also using Pytorch. What do you mean by not supported ? I am training using Adam on 2D Wave eq (inverse case), and it doesn't seem to work. Can you please clarify.
Hi, @lululxvi, when I try to train the example Inverse problem for the fractional Poisson equation in 1D by L-BFGS with dynamic auxiliary points, there's an unexpected error:
I tested the example by L-BFGS with static auxiliary points and it worked properly. Here is my code, and my backend is pytorch: