-
Notifications
You must be signed in to change notification settings - Fork 33
refactor: move overrides into a separate file #379
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
Conversation
a05ba91 to
2120d3b
Compare
|
I like this. The only thing left is that if we want to rename |
|
@avik-pal what is the difference between "TracedUtils.jl" and "Tracing.jl"? i created "Tracing.jl" to put all things related to tracing but not should i put a comment on top of the files to tell what that file is about? like i did in "Ops.jl" |
I needed a namespace such that we told our interpreter we don't need to continue recursing into it and replacing all code with code from our interpreter (for compile time performance). Ops is one such namespace, as is TracedUtils |
aha and the same thing for i don't like much that |
|
Not quite, those were there because I wanted to avoid exporting any internal utilities for implementing the traced overrides of Base And yeah definitely go for reorganizing things [I just wanted to get things running to start with] |
|
Just to confirm this is good to merge right? We can do reorganization in a later PR |
yeah, will still wait for you to finish so there are no overlaps or conflicts |
e2d7377 to
1252ad8
Compare
1252ad8 to
9488225
Compare
This reverts commit f35d911.
9488225 to
361c3f4
Compare
Cross posting from https://prontolab.slack.com/archives/C07JU2SCP9C/p1734235298670169 for details
Any idea how to make the reactant_override stuff work nicely with Revise. currently if we make any arbitrary change in a file containing a reactant_override it fails to revise. For example, adding:
before the overrides for Enzyme leads to
If there is no nice solution, does anyone mind if I move all the overlays to a separate file "Overrides.jl"? That way Revise only doesn't work if a change is made to that particular file