Skip to content

Commit 1477eb0

Browse files
authored
Merge branch 'master' into ecosystem_examples
2 parents 3ab225b + e7134a9 commit 1477eb0

34 files changed

+310
-169
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ steps:
3535
# when Image has defined CUDa version we can switch to this package spec "nvidia-dali-cuda${CUDA_VERSION%%.*}0"
3636
- pip install --extra-index-url https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda100 --upgrade-strategy only-if-needed
3737
- pip list
38-
- coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --color=yes --durations=25 # --flake8
39-
- python -m pytest benchmarks pl_examples -v --color=yes --maxfail=2 --durations=0 # --flake8
38+
- coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --durations=25 # --flake8
39+
- python -m pytest benchmarks pl_examples -v --maxfail=2 --durations=0 # --flake8
4040
#- cd docs; make doctest; make coverage
4141
- coverage report
4242
# see: https://docs.codecov.io/docs/merging-reports

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ This is useful if you do not test against all required dependency versions.
196196
**Docker:** Another option is utilize the [pytorch lightning cuda base docker image](https://hub.docker.com/repository/docker/pytorchlightning/pytorch_lightning/tags?page=1&name=cuda). You can then run:
197197

198198
```bash
199-
python -m pytest pytorch_lightning tests pl_examples -v --color=yes --flake8
199+
python -m pytest pytorch_lightning tests pl_examples -v --flake8
200200
```
201201

202202
### Pull Request
@@ -294,7 +294,7 @@ Here is the process to create a new test
294294
```python
295295
# TEST SHOULD BE IN YOUR FILE: tests/..../...py
296296

297-
# RUN OUR TEST WITH: pytest tests/..../...py::test_explain_what_is_being_tested --verbose --color=yes --capture=no
297+
# RUN OUR TEST WITH: pytest tests/..../...py::test_explain_what_is_being_tested --verbose --capture=no
298298

299299
# TEST CODE TEMPLATE
300300

.github/workflows/ci_test-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Test Package [only]
7070
run: |
7171
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
72-
coverage run --source pytorch_lightning -m pytest pytorch_lightning -v --color=yes --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
72+
coverage run --source pytorch_lightning -m pytest pytorch_lightning -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
7373
7474
- name: Upload pytest test results
7575
uses: actions/upload-artifact@v2

.github/workflows/ci_test-conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Tests
4242
run: |
4343
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
44-
python -m pytest pytorch_lightning tests -v --color=yes --durations=0 --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
44+
python -m pytest pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
4545
# coverage report
4646
shell: bash -l {0}
4747

.github/workflows/ci_test-full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
- name: Tests
120120
run: |
121121
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
122-
coverage run --source pytorch_lightning -m pytest pytorch_lightning tests pl_examples -v --color=yes --durations=0 --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
122+
coverage run --source pytorch_lightning -m pytest pytorch_lightning tests pl_examples -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
123123
124124
- name: Upload pytest test results
125125
uses: actions/upload-artifact@v2

.github/workflows/nightly.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ jobs:
2121
- name: Install dependencies
2222
run: >-
2323
python -m pip install --user --upgrade setuptools wheel
24-
- name: Build
24+
25+
- name: Build packages
2526
run: |
2627
python .github/prepare-nightly_version.py
2728
python setup.py sdist bdist_wheel
2829
ls -lh dist/
2930
30-
# We do this, since failures on test.pypi aren't that bad
31+
- name: Delay releasing
32+
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
33+
uses: juliangruber/sleep-action@v1
34+
with:
35+
time: 5m
36+
37+
# We do this, since failures on test.pypi aren't that bad
3138
- name: Publish to Test PyPI
3239
uses: pypa/[email protected]
3340
with:

.github/workflows/pypi-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@ jobs:
2222
- name: Install dependencies
2323
run: >-
2424
python -m pip install --user --upgrade setuptools wheel
25-
- name: Build
25+
26+
- name: Build packages
2627
run: |
2728
python setup.py sdist bdist_wheel
2829
ls -lh dist/
2930
31+
- name: Delay releasing
32+
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
33+
uses: juliangruber/sleep-action@v1
34+
with:
35+
time: 10m
36+
3037
# We do this, since failures on test.pypi aren't that bad
3138
- name: Publish to Test PyPI
3239
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'

CHANGELOG.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2727
- Added option to log momentum ([#4384](https://github.com/PyTorchLightning/pytorch-lightning/pull/4384))
2828

2929

30+
- Added `current_score` to `ModelCheckpoint.on_save_checkpoint` ([#4712](https://github.com/PyTorchLightning/pytorch-lightning/pull/4721))
31+
32+
3033
- Added logging using `self.log` in train and evaluation for most callbacks and model hooks (
3134
[#4552](https://github.com/PyTorchLightning/pytorch-lightning/pull/4552),
3235
[#4495](https://github.com/PyTorchLightning/pytorch-lightning/pull/4495),
3336
[#4439](https://github.com/PyTorchLightning/pytorch-lightning/pull/4439))
3437

3538

39+
- Added ability for DDP plugin to modify optimizer state saving ([#4675](https://github.com/PyTorchLightning/pytorch-lightning/pull/4675))
40+
41+
3642
### Changed
3743

3844
- Tuner algorithms will be skipped if `fast_dev_run=True` ([#3903](https://github.com/PyTorchLightning/pytorch-lightning/pull/3903))
3945

4046

41-
- Metric states are no longer as default added to `state_dict` ([#4685](https://github.com/PyTorchLightning/pytorch-lightning/pull/))
42-
4347

4448
### Deprecated
4549

@@ -51,33 +55,26 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5155

5256
### Fixed
5357

54-
- Allowing decorate model init with saving `hparams` inside ([#4662](https://github.com/PyTorchLightning/pytorch-lightning/pull/4662))
55-
56-
57-
- Fixed `setup` callback hook to correctly pass the LightningModule through ([#4608](https://github.com/PyTorchLightning/pytorch-lightning/pull/4608))
5858

5959

60-
61-
## [unreleased.BugFix] - YYYY-MM-DD
60+
## [1.0.7] - 2020-11-17
6261

6362
### Added
6463

65-
64+
- Added lambda closure to `manual_optimizer_step` ([#4618](https://github.com/PyTorchLightning/pytorch-lightning/pull/4618))
6665

6766
### Changed
6867

69-
70-
71-
### Deprecated
72-
73-
74-
75-
### Removed
76-
68+
- Change Metrics `persistent` default mode to `False` ([#4685](https://github.com/PyTorchLightning/pytorch-lightning/pull/4685))
7769

7870

7971
### Fixed
8072

73+
- Prevent crash if `sync_dist=True` on CPU ([#4626](https://github.com/PyTorchLightning/pytorch-lightning/pull/4626))
74+
- Fixed average pbar Metrics ([#4534](https://github.com/PyTorchLightning/pytorch-lightning/pull/4534))
75+
- Fixed `setup` callback hook to correctly pass the LightningModule through ([#4608](https://github.com/PyTorchLightning/pytorch-lightning/pull/4608))
76+
- Allowing decorate model init with saving `hparams` inside ([#4662](https://github.com/PyTorchLightning/pytorch-lightning/pull/4662))
77+
- Fixed `split_idx` set by `LoggerConnector` in `on_trainer_init` to `Trainer` ([#4697](https://github.com/PyTorchLightning/pytorch-lightning/pull/4697))
8178

8279

8380
## [1.0.6] - 2020-11-11

dockers/tpu-tests/tpu_test_cases.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local tputests = base.BaseTest {
2121
command: utils.scriptCommand(
2222
|||
2323
cd pytorch-lightning
24-
coverage run --source=pytorch_lightning -m pytest tests/models/test_tpu.py -v --color=yes
24+
coverage run --source=pytorch_lightning -m pytest tests/models/test_tpu.py -v
2525
test_exit_code=$?
2626
echo "\n||| END PYTEST LOGS |||\n"
2727
coverage xml

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ def package_list_from_file(file):
316316
if SPHINX_MOCK_REQUIREMENTS:
317317
# mock also base packages when we are on RTD since we don't install them there
318318
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, 'requirements.txt'))
319-
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, 'requirements/extra.txt'))
320-
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, 'requirements/loggers.txt'))
319+
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, 'requirements', 'extra.txt'))
320+
MOCK_PACKAGES += package_list_from_file(os.path.join(PATH_ROOT, 'requirements', 'loggers.txt'))
321321
MOCK_PACKAGES = [PACKAGE_MAPPING.get(pkg, pkg) for pkg in MOCK_PACKAGES]
322322

323323
autodoc_mock_imports = MOCK_PACKAGES

0 commit comments

Comments
 (0)