Open mynanshan opened 6 months ago
https://github.com/lululxvi/deepxde/blob/10ec4e5f4c91a27229b6b5bba32c6c58fc14bf90/deepxde/data/pde.py#L168
I am just wondering why the PDE loss f is computed on the full input array while its f[:bcs_start[-1]] part is not used. Should it be optimized by just passing the part of the inputs to PDE.losses?
f
input
f[:bcs_start[-1]]
inputs
PDE.losses
PDE error are evaluated at all points including boundary points.
https://github.com/lululxvi/deepxde/blob/10ec4e5f4c91a27229b6b5bba32c6c58fc14bf90/deepxde/data/pde.py#L168
I am just wondering why the PDE loss
f
is computed on the fullinput
array while itsf[:bcs_start[-1]]
part is not used. Should it be optimized by just passing the part of theinputs
toPDE.losses
?