Skip to content

Commit

Permalink
Merge release 1.4.0 from f-dangel/development (#225)
Browse files Browse the repository at this point in the history
Release BackPACK 1.4.0
  • Loading branch information
f-dangel authored Oct 11, 2021
2 parents 1f72b00 + 9701baf commit 1da7e53
Show file tree
Hide file tree
Showing 221 changed files with 11,527 additions and 2,792 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://coverage.readthedocs.io/en/v4.5.x/config.html#config
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
raise AssertionError

# TYPE_CHECKING block is never executed during pytest run
if TYPE_CHECKING:
11 changes: 6 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,28 @@ on:
- development
- master
- release


jobs:
tests:
name: "Python ${{ matrix.python-version }}"
name: "py${{ matrix.python-version }} torch${{ matrix.pytorch-version}}"
runs-on: ubuntu-latest
env:
USING_COVERAGE: '3.6,3.8'
USING_COVERAGE: '3.7,3.9'

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8"]
python-version: [3.7, 3.8, 3.9]
pytorch-version: [1.9.0, 1.9.1]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "${{ matrix.python-version }}"
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
make install-test
pip install torch==${{ matrix.pytorch-version }} torchvision
- name: Run test
if: contains('refs/heads/master refs/heads/development refs/heads/release', github.ref)
run: |
Expand Down
4 changes: 2 additions & 2 deletions README-dev.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# <img alt="BackPACK" src="./logo/backpack_logo_torch.svg" height="90"> BackPACK developer manual

## General standards
- Python version: support 3.6+, use 3.7 for development
## General standards
- Python version: support 3.7+, use 3.7 for development
- `git` [branching model](https://nvie.com/posts/a-successful-git-branching-model/)
- Docstring style: [Google](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
- Test runner: [`pytest`](https://docs.pytest.org/en/latest/)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Travis](https://travis-ci.org/f-dangel/backpack.svg?branch=master)](https://travis-ci.org/f-dangel/backpack)
[![Coveralls](https://coveralls.io/repos/github/f-dangel/backpack/badge.svg?branch=master)](https://coveralls.io/github/f-dangel/backpack)
[![Python 3.6+](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/)

BackPACK is built on top of [PyTorch](https://github.com/pytorch/pytorch). It efficiently computes quantities other than the gradient.

Expand Down
Loading

0 comments on commit 1da7e53

Please sign in to comment.