dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.56k stars 538 forks source link

Set default ctx in conftest #1363

Closed leezu closed 3 years ago

leezu commented 3 years ago

Otherwise all tests with ctx argument are skipped if no ctx is specified on the command line.

codecov[bot] commented 3 years ago

Codecov Report

Merging #1363 into master will increase coverage by 10.95%. The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1363       +/-   ##
===========================================
+ Coverage   70.76%   81.71%   +10.95%     
===========================================
  Files         105       52       -53     
  Lines       12504     6901     -5603     
===========================================
- Hits         8848     5639     -3209     
+ Misses       3656     1262     -2394     
Impacted Files Coverage Δ
conftest.py 85.00% <75.00%> (-2.02%) :arrow_down:
src/gluonnlp/models/xlmr.py 58.82% <0.00%> (-29.42%) :arrow_down:
src/gluonnlp/models/__init__.py 67.74% <0.00%> (-29.04%) :arrow_down:
src/gluonnlp/models/electra.py 57.89% <0.00%> (-18.56%) :arrow_down:
src/gluonnlp/models/bart.py 70.62% <0.00%> (-15.63%) :arrow_down:
src/gluonnlp/utils/config.py 61.53% <0.00%> (-15.39%) :arrow_down:
src/gluonnlp/models/roberta.py 84.38% <0.00%> (-9.29%) :arrow_down:
src/gluonnlp/utils/misc.py 51.08% <0.00%> (-7.74%) :arrow_down:
src/gluonnlp/models/albert.py 87.80% <0.00%> (-7.67%) :arrow_down:
src/gluonnlp/models/gpt2.py 90.94% <0.00%> (-7.32%) :arrow_down:
... and 61 more

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 0e86648...7ab4e0a. Read the comment docs.