boschresearch / torchphysics

https://boschresearch.github.io/torchphysics/
Apache License 2.0
403 stars 41 forks source link

Add DeepONet #15

Closed TomF98 closed 2 years ago

farrate commented 2 years ago

Hi: I was trying to implement DeepOnet using functional data instead of a custom function. I mean, instead of:

def f1(k, x): return k*x Fn_set = tp.domains.CustomFunctionSet(Fn_space, param_sampler, f1)

I want the function f1 be a data array of lets say 1D data, f1.shape = (1,000, 100). f1 can be a medium with non homogeneous density.

Thanks