-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow custom ops with static constant input edges #1594
Comments
Currently With the feature as described it is not allowed for extension operations to take Rename |
So
|
I think you mean "Call take a Const input". Yes you could do this, with the advantage that now only |
Yes, |
This is the case in the PR linked above. I like the change you propose but I think that is a follow up feature so should be in a new issue. |
Moved to hugr "v2" model work #1433 |
Discussed in #1342
Originally posted by ss2165 July 24, 2024
This follows discussions mainly in #1308
A constant static input to an op would would be some semantically significant data, that cannot be lost like metadata. This could be thought of as "literal properties" or "intrinsic parameters".
If further we can elevate values to constants at compile time (constexpr evaluation) we can do powerful things with ops that need some structured, complicated, compile-time known data.
An open question is whether this data is available to binary compute_signature functions.
The text was updated successfully, but these errors were encountered: