Skip to content

Commit 37dac98

Browse files
Merge pull request #71 from LukasHedegaard/develop
Develop
2 parents b75acad + b748f94 commit 37dac98

File tree

10 files changed

+27
-18
lines changed

10 files changed

+27
-18
lines changed

.github/workflows/codecov.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ jobs:
1414
- name: Setup Python
1515
uses: actions/setup-python@master
1616
with:
17-
python-version: 3.7
17+
python-version: 3.11
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
2121
pip install .[dev]
22+
- name: Lint
23+
run: |
24+
flake8 . --max-complexity=12 --max-line-length=88 --select=C,E,F,W,B,B950,BLK --ignore=E203,E231,E501,W503
2225
- name: Generate coverage report
2326
run: |
2427
python -m pytest --cov continual --cov-report=xml -m "not skip_cicd"

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@master
13-
- name: Set up Python 3.9
13+
- name: Set up Python
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: 3.9
16+
python-version: 3.11
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip

.github/workflows/publishtest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@master
13-
- name: Set up Python 3.9
13+
- name: Set up Python
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: 3.9
16+
python-version: 3.11
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [macos-latest, ubuntu-latest, windows-latest]
11-
python-version: [3.7, 3.9]
10+
os: [ubuntu-latest]
11+
python-version: [3.9, 3.12]
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -22,10 +22,6 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install .[dev]
2424
25-
- name: Lint
26-
run: |
27-
flake8 . --max-complexity=12 --max-line-length=88 --select=C,E,F,W,B,B950,BLK --ignore=E203,E231,E501,W503
28-
2925
- name: Test with pytest
3026
run: |
3127
pytest -m "not skip_cicd"

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ From v1.0.0 and on, the project will adherence strictly to Semantic Versioning.
88

99
## Unpublished
1010

11+
## [1.2.4] - 2025-03-15
12+
13+
### Fixed
14+
- Multilayer transformers when num_layers>=3.
15+
16+
### Added
17+
- Tests up to python 3.12.
18+
1119

1220
## [1.2.3] - 2023-06-16
1321

continual/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import time
22

3-
__version__ = "1.2.3"
3+
__version__ = "1.2.4"
44
__author__ = "Lukas Hedegaard"
55
__author_email__ = "[email protected]"
66
__license__ = "Apache-2.0"

continual/conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(
7676

7777
if stride[0] > 1:
7878
logger.warning(
79-
f"Temporal stride of {stride[0]} will result in skipped outputs every {stride[0]-1} / {stride[0]} steps"
79+
f"Temporal stride of {stride[0]} will result in skipped outputs every {stride[0] - 1} / {stride[0]} steps"
8080
)
8181

8282
dilation = size_fn(dilation)

continual/transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def __init__(
550550
layers.append(encoder_layer(MhaType.SINGLE_OUTPUT))
551551
else:
552552
layers.append(encoder_layer(MhaType.RETROACTIVE))
553-
for _ in range(2, num_layers - 1):
553+
for _ in range(1, num_layers - 1):
554554
layers.append(
555555
RetroactiveLambda(encoder_layer(MhaType.REGULAR), takes_time=True)
556556
)

requirements/dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
black
2-
flake8
3-
flake8-black
1+
black==23.1.0
2+
flake8==6.0.0
3+
flake8-black==0.3.6
44
isort>=5.7
55
pytest
66
pytest-cov
7-
ptflops>=0.6.8
7+
ptflops==0.6.8
88
numpy
99
pytorch_lightning
1010
onnx~=1.12

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ def from_file(file_name: str = "requirements.txt", comment_char: str = "#"):
7474
"Programming Language :: Python :: 3.8",
7575
"Programming Language :: Python :: 3.9",
7676
"Programming Language :: Python :: 3.10",
77+
"Programming Language :: Python :: 3.11",
78+
"Programming Language :: Python :: 3.12",
7779
],
7880
)

0 commit comments

Comments
 (0)