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

Added test for uno horizontal_skips_map when None, and make validate_scaling_factor to return None if all scalings are 1 for eff. #273

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

btolooshams
Copy link
Contributor

No description provided.

)


def apply_complex(fr, fi, x, dtype=torch.cfloat):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make the variable names clearer? e.g. expand f, use real and imag etc.

into a module that operates on complex-valued spatial data.
"""

def __init__(self, mod):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def __init__(self, mod):
def __init__(self, module):

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated.

def __init__(self, mod):
super(ComplexValued, self).__init__()
self.fr = deepcopy(mod)
self.fi = deepcopy(mod)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the deep copy needed? Are we expecting the module to be used somewhere else before conversion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line of code is from @dhpitt. I am not sure if deepcopy is necessary.

neuralop/utils.py Outdated Show resolved Hide resolved
@btolooshams
Copy link
Contributor Author

The latest update here is about complex FNO (main changes are in the spectral convolution). I have also added pytest when the data is complex.

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

Successfully merging this pull request may close these issues.

None yet

2 participants