JuliaLabs / Cassette.jl

Overdub Your Julia Code
Other
371 stars 35 forks source link

Deal with _apply_iterate #158

Closed vchuravy closed 4 years ago

vchuravy commented 4 years ago

Fixes #155 and #146

cc: @yingboma @shashi

KristofferC commented 4 years ago

Does this do the:

Cassette and similar tools can override this argument and provide a function that properly allows the context to recurse through the iteration, while still allowing inference to take advantage of the special handling of _apply for simple cases.

vchuravy commented 4 years ago

can override this argument and provide a function that properly allows the context to recurse through the iteration,

Yes it does, it rewrites the argument with a args -> overdub(ctx, f, args...)

shashi commented 4 years ago

Awesome!