Stream: helpdesk (published)

Topic: Updating Torch.jl for NNlib >= v0.8, Flux >= 0.13, Metalhead


view this post on Zulip Jesper Stemann Andersen (Nov 10 2024 at 13:17):

Any tips for for updating the Flux example/test for Torch.jl for NNlib >= v0.8?

Currently affected by an issue which leads to trouble with differentiating a foreigncall expression: https://github.com/stemann/Torch.jl/blob/feature/torch_1.10.2/test/flux_tests.jl#L23

Call stack:

view this post on Zulip Brian Chen (Nov 11 2024 at 15:52):

I'm guessing some functions need to be marked as @non_differentiable

view this post on Zulip Jesper Stemann Andersen (Nov 11 2024 at 16:05):

Related question: Is the current approach with ZygoteRules.@adjoint up to date or should they be replaced with ChainRulesCore.rrules (at some point)?

view this post on Zulip Michael Abbott (Nov 11 2024 at 17:49):

IMO little is gained by replacing @adjoint with rrule now, so I wouldn't bother.

view this post on Zulip Brian Chen (Nov 11 2024 at 20:04):

The only reason @adjoint still exists is that nobody has had the bandwidth to try deprecating it properly.


Last updated: Nov 22 2024 at 04:41 UTC