Open PhilippBrendel opened 9 months ago
model.predict
cannot work with PDEOperatorCartesianProd
yet. It is not a bug, but needs more code implementation. You may use other numerical methods to get the error now.
Dear @lululxvi, thank you for the clarification, I will check other options!
I have a slightly related question that you might be able to answer quickly:
Can PDEOperatorCartesianProd work with MIONetCartesianProd out-of-the-box or do I need to create my own version of it supporting MIONet? I tried to use it that way but it's giving me shape errors on standard boundary conditions.
So far I have only found this repo for data-driven approach with MIONet, but I want to train a physics-informed MIONet, see e.g. this work.
Best, Philipp
Can PDEOperatorCartesianProd work with MIONetCartesianProd out-of-the-box?
No. You need to implement your version.
Hi,
I am trying to get the residuals during/after training a DeepONet. Using the same approach that works in the "standard" PINN case
residuals = np.absolute(self.model.predict(x, callbacks=..., operator=self.pde))
yields the following Error:
As to be expected, e.g. from the 1D poisson tutorial , the code is trying to access PDEOperatorCartesianProd object instead of the TimePDE object with which the model would be initialized in a standard PINN example
Enforcing the correct underlying TimePDE object to be used here via a direct source code change does not work either as the attribute seems to be None.
Is this a bug or can someone help me out here?
Best, Philipp