-
Notifications
You must be signed in to change notification settings - Fork 108
Translate shape for fd.ops.full #2763
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: crcrpar <[email protected]>
| fd: FusionDefinition, | ||
| lc_to_nv_map: dict, | ||
| ) -> Any: | ||
| nv_shape = getnv(shape, fd, lc_to_nv_map, inline_number=True) |
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.
In my interpretation, we put inline_number=True simply because we don't want to create fd.define_scalar for each dimension every time.
beverlylytle
left a comment
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.
Yay!
crcrpar
left a comment
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.
can we have a test for this?
Part of fix for #2677. As explained in #2677 (comment), this patch fixes an error which is caused by feeding a
NumberProxyfor shape directly intofd.ops.full.