Allow soft dependencies in the namespace with ImportErrors at use (#7537)

* PoC on RAG

* Format class name/obj name

* Better name in message

* PoC on one TF model

* Add PyTorch and TF dummy objects + script

* Treat scikit-learn

* Bad copy pastes

* Typo
This commit is contained in:
Sylvain Gugger
2020-10-05 09:12:04 -04:00
committed by GitHub
parent 1a00f46c74
commit 28d183c90c
10 changed files with 3476 additions and 74 deletions

View File

@@ -23,6 +23,7 @@ modified_only_fixup:
extra_quality_checks:
python utils/check_copies.py
python utils/check_dummies.py
python utils/check_repo.py
# this target runs checks on all files
@@ -46,6 +47,7 @@ fixup: modified_only_fixup extra_quality_checks
fix-copies:
python utils/check_copies.py --fix_and_overwrite
python utils/check_dummies.py --fix_and_overwrite
# Run tests for the library