This file wont precompile

using Flux
using Statistics

using Networks

export PolicyNetwork, advantage

...

I have this source file in the src directory of my project. src is in the JULIA_LOAD_PATH, but when I attempt to use Networks Julia pre-compiles for several minutes and uses up all 16 gigs of my RAM?

The file “uses” itself. A recursive import / use. That was the problem.

1 Like