-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
writing type stable wrapper #117
Comments
The best you can do here is to add a type assert. We can't do better than that with how Tracker is implemented. |
Thanks for the feedback. I am not sure this issue is still relevant (the package that uses this underwent a lot of changes), but I will look into it. |
I ended up adding a wrapper in https://github.com/tpapp/LogDensityProblems.jl/blob/d7a3e8e82f6090efca84668764e767e10a463c2f/src/AD_Flux.jl#L25 My understanding is that issue won't and cannot be fixed, so feel free to close it, or keep it open and add a |
Flux.Tracker.forward
is not type stable (cf FluxML/Flux.jl#167), so I am wondering what is the best strategy to make the wrapper below type stable:Currently eg
The text was updated successfully, but these errors were encountered: