-
Notifications
You must be signed in to change notification settings - Fork 49
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
Implementations for as_offset #1143
Conversation
…as_offset_builtin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small clarity improvement (probably copy pasta)
@dataclass | ||
class BuiltInFunction: | ||
__gt_type: ts.FunctionType | ||
|
||
def __call__(self, *args, **kwargs): | ||
"""Act as an empty place holder for the built in function.""" | ||
|
||
def __gt_type__(self): | ||
return self.__gt_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in a ffront/common.py
or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I move it to common
I get this error:
dim: func_common.Dimension
E AttributeError: partially initialized module 'gt4py.next.common' has no attribute 'Dimension' (most likely due to a circular import)
Co-authored-by: Rico Haeuselmann <r.haeuselmann@gmx.ch>
Implementation of
where
as_offset
shifts a field of values wrt to a field of offset values