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 tried to run the Fractional Poisson equation in 2D demo, but it produces the following error.
Traceback (most recent call last):
File "deepxde\fractional_Poisson_2d.py", line 35, in <module>
data = dde.data.FPDE(
File "deepxde\deepxde\data\fpde.py", line 88, in __init__
super().__init__(
File "deepxde\deepxde\data\pde.py", line 127, in __init__
self.train_next_batch()
File "deepxde\deepxde\data\fpde.py", line 163, in train_next_batch
X = self.frac_train.get_x()
File "deepxde\deepxde\data\fpde.py", line 402, in get_x
else self.get_x_dynamic()
File "deepxde\deepxde\data\fpde.py", line 474, in get_x_dynamic
self.w.append(array_ops_compat.hstack(wi))
File "deepxde\deepxde\utils\array_ops_compat.py", line 25, in hstack
if not is_tensor(tup[0]) and tup[0] == []:
ValueError: operands could not be broadcast together with shapes (172,) (0,)
I just changed the tf backend to deepxde.backend, as shown below:
I tried to run the Fractional Poisson equation in 2D demo, but it produces the following error.
I just changed the tf backend to deepxde.backend, as shown below:
I think, just replacing
if not is_tensor(tup[0]) and tup[0] == []:
withif not is_tensor(tup[0]) and isinstance(tup[0],list):
can solve this problem.The text was updated successfully, but these errors were encountered: