-
Notifications
You must be signed in to change notification settings - Fork 1
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
Some comments from a discussion #3
Comments
|
The recursive set of It's true that this can't handle anonymous functions, but neither can a method that looks at IR in general. Julia is a dynamic language and any dynamic dispatch is going to thwart a static analysis. |
Does |
No, it's |
Creating a package called |
Is that an objection to the package or the specific name? We can bikeshed the name easily enough if avoiding the flux dependency seems useful enough. |
breaking a single function into a package, seems excessive. |
We could try that, but I don't think they have the same semantics. Flux doesn't really want AbstractTrees provides and I don't think AbstractTrees want what Flux provides. I'm not sure they're compatible if you e.g. put a tree inside a Flux model. This is why I say that Flux's current abstraction seems Flux-specific (though of course designing something that isn't Flux specific to do the same job would be great). |
It would be good the have an abstraction that works for both Flux and Turing.jl |
Please checkout dev branch. IR approach seems promising to me. I haven't written cases for all kinds of
What is your opinion on this approach? |
I'm trying to do dynamic analysis by taking function and args using Cassette. It should be able to handle anonymous functions too. |
Wow, very nice progress! |
Was talking to @MikeInnes about this a while ago
Transcribing this here:
The text was updated successfully, but these errors were encountered: