Closed PetrochukM closed 4 years ago
Merging #3 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #3 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 226 247 +21
=====================================
+ Hits 226 247 +21
Impacted Files | Coverage Δ | |
---|---|---|
hparams/__init__.py | 100% <100%> (ø) |
:arrow_up: |
hparams/hparams.py | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update e32dd4b...68b1865. Read the comment docs.
At the moment,
add_config
imports every module that is referenced in the configuration in order to check the function signature and path. With this PR, we add an option to lazily import modules only if they are already insys.modules
.This optionality should increase initialization speed but it potentially leaves room for some configurations to not be checked because they are never run during runtime.
Finally:
conftest
file so thatpytest
rests the global state before each test.inspect.stack
HParam
initialization performance like so: https://stackoverflow.com/questions/17407119/python-inspect-stack-is-slow