- 23 Dec, 2019 9 commits
-
-
Aymeric Augustin authored
Take advantage of this to simplify the Circle CI configuration. Don't bother with tensorboardX: it's a fallback for PyTorch < 1.1.0.
-
Aymeric Augustin authored
Every other file uses this pattern.
-
Aymeric Augustin authored
-
Aymeric Augustin authored
requirements.txt isn't up to date.
-
Aymeric Augustin authored
This should fix API docs, which went AWOL with yesterday's changes.
-
thomwolf authored
-
Thomas Wolf authored
Fix doc link in README
-
Thomas Wolf authored
fix error due to wrong argument name to Tensor.scatter()
-
James Noeckel authored
-
- 22 Dec, 2019 31 commits
-
-
Aymeric Augustin authored
Remove support for Python 2
-
Aymeric Augustin authored
-
Aymeric Augustin authored
On Python 3, `open is io.open`.
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Thomas Wolf authored
Improve repository structure
-
Thomas Wolf authored
Implement some Python best practices
-
Aymeric Augustin authored
This is the same change as for (TF)CommonTestCases for modeling.
-
Aymeric Augustin authored
-
Aymeric Augustin authored
It isn't imported anywhere.
-
Aymeric Augustin authored
I suspect the wrapper classes were created in order to prevent the abstract base class (TF)CommonModelTester from being included in test discovery and running, because that would fail. I solved this by replacing the abstract base class with a mixin. Code changes are just de-indenting and automatic reformattings performed by black to use the extra line space.
-
Aymeric Augustin authored
This construct isn't used anymore these days. Running python tests/test_foo.py puts the tests/ directory on PYTHONPATH, which isn't representative of how we run tests. Use python -m unittest tests/test_foo.py instead.
-
Aymeric Augustin authored
This prevents transformers from being importable simply because the CWD is the root of the git repository, while not being importable from other directories. That led to inconsistent behavior, especially in examples. Once you fetch this commit, in your dev environment, you must run: $ pip uninstall transformers $ pip install -e . -
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
These libraries aren't always installed in the virtual environment where isort is running. Declaring them properly avoids mixing these third-party imports with local imports.
-
Aymeric Augustin authored
I don't want to consider it a dependency of transformers, but it's usually there in local development and usually not there in CI.
-
Aymeric Augustin authored
I'll fix it later.
-
Aymeric Augustin authored
-
Aymeric Augustin authored
-
Aymeric Augustin authored
Do manually what autoflake couldn't manage.
-
Aymeric Augustin authored
This change is mostly autogenerated with: $ python -m autoflake --in-place --recursive --remove-all-unused-imports --ignore-init-module-imports examples templates transformers utils hubconf.py setup.py I made minor changes in the generated diff. -
Aymeric Augustin authored
This change is mostly autogenerated with: $ python -m autoflake --in-place --recursive examples templates transformers utils hubconf.py setup.py I made minor changes in the generated diff.
-