Which function in julia.Flux is similar to "detach()" in pytorch?

Probably ignore_derivatives is what you are looking for.

3 Likes