Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
3e3a9e2c
Unverified
Commit
3e3a9e2c
authored
Feb 11, 2020
by
Funtowicz Morgan
Committed by
GitHub
Feb 11, 2020
Browse files
Merge pull request #2793 from huggingface/tensorflow-210-circleci-fix
Fix circleci cuInit error on Tensorflow >= 2.1.0.
parents
1f5db9a1
6aa7973a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
.circleci/config.yml
.circleci/config.yml
+3
-3
setup.py
setup.py
+1
-0
No files found.
.circleci/config.yml
View file @
3e3a9e2c
...
...
@@ -10,7 +10,7 @@ jobs:
parallelism
:
1
steps
:
-
checkout
-
run
:
sudo pip install .[sklearn,tf,torch,testing]
-
run
:
sudo pip install .[sklearn,tf
-cpu
,torch,testing]
-
run
:
sudo pip install codecov pytest-cov
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov
-
run
:
codecov
...
...
@@ -26,7 +26,7 @@ jobs:
parallelism
:
1
steps
:
-
checkout
-
run
:
sudo pip install .[mecab,sklearn,tf,torch,testing]
-
run
:
sudo pip install .[mecab,sklearn,tf
-cpu
,torch,testing]
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./tests/
run_tests_torch
:
working_directory
:
~/transformers
...
...
@@ -52,7 +52,7 @@ jobs:
parallelism
:
1
steps
:
-
checkout
-
run
:
sudo pip install .[sklearn,tf,testing]
-
run
:
sudo pip install .[sklearn,tf
-cpu
,testing]
-
run
:
sudo pip install codecov pytest-cov
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov
-
run
:
codecov
...
...
setup.py
View file @
3e3a9e2c
...
...
@@ -63,6 +63,7 @@ extras = {}
extras
[
"mecab"
]
=
[
"mecab-python3"
]
extras
[
"sklearn"
]
=
[
"scikit-learn"
]
extras
[
"tf"
]
=
[
"tensorflow"
]
extras
[
"tf-cpu"
]
=
[
"tensorflow-cpu"
]
extras
[
"torch"
]
=
[
"torch"
]
extras
[
"serving"
]
=
[
"pydantic"
,
"uvicorn"
,
"fastapi"
,
"starlette"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment