Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIONet for pytorch backend #1926

Open
voloddia opened this issue Dec 29, 2024 · 0 comments
Open

MIONet for pytorch backend #1926

voloddia opened this issue Dec 29, 2024 · 0 comments

Comments

@voloddia
Copy link

Hi Professor Lu,
Currently I see there is no MIONet class for pytorch backend.
By looking at the code for tensorflow.compat.v1, I guess I need to replace

if self.output_merger is None:
    y = torch.einsum("ip,jp->ij", y_func, y_loc)

with

if self.output_merger is None:
    y = torch.mul(y_func, y_loc)
    y = torch.sum(y, axis=1, keepdim=True)

But I'm not sure if other things need to be modified when self.output_merger is not None.
Could you please advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant