Closed avivajpeyi closed 2 years ago
This happens because Theano needs to compile the model when it is first used. These compiled models are (generally) cached and re-used, but since we're setting our "compiledir", each process will take some overhead to compile the first time. I'm not sure that there's really anything to do about this. I've tried some "clever" things in the past to share the cache between processes, but this always ends up being more trouble than it is worth!
Ah ok! Thanks Dan
Although building the model is quick ~1s, running the
test_model
function takes ~ 1min.For ref:
Similarly, optimizing the initial params takes ~3min:
I understand that the optimization can take some time, but don't understand why the
test_model
takes ~1min...