Open dmetivie opened 1 year ago
main()
function to avoid globals, too. Ignite itself typically has very little (~10us) overhead.add_event_handler!
is just a regular function, and it's first argument in the examples is just a regular closure capturing (global) variables.engine.output
in the state, e.g. push!(engine.state.losses, engine.output)
. See the docs for engine.state
I understand the use of this package and want to use it. I got the well written README examples. However, I am wondering how one would generalize some stuff to real problem without performance issues:
rng
,hyperparams
, should it be global variables ? I thought this lead to performance issues. Generally, I was also wondering if usingIgnite.jl
lead to performance change.add_event_handler
be passed into a single function returning trainer? So that one just have torun!
Ignite.run!
Of course, I can try to contribute to provide examples, but to get started I think I need at least to be clear on point 1. and 2.