Skip to content

Commit

Permalink
update python version to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
sascha-kirch committed Oct 18, 2023
1 parent ebe44c6 commit e78605a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -28,10 +28,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -45,10 +45,10 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 2 additions & 1 deletion DeepSaki/layers/layer_composites.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from DeepSaki.layers.layer_helper import PaddingType
from DeepSaki.layers.layer_helper import dropout_func
from DeepSaki.layers.layer_helper import pad_func
from DeepSaki.constraints import NonNegative

class Conv2DSplitted(tf.keras.layers.Layer):
"""
Expand Down Expand Up @@ -983,7 +984,7 @@ def __init__(self, initializer: tf.keras.initializers.Initializer = tf.keras.ini
super(ScaleLayer, self).__init__()
self.initializer = initializer
self.scale = self.add_weight(
shape=[1], initializer=initializer, constraint=DeepSaki.constraints.NonNegative(), trainable=True
shape=[1], initializer=initializer, constraint=NonNegative(), trainable=True
)

def call(self, inputs: tf.Tensor) -> tf.Tensor:
Expand Down

0 comments on commit e78605a

Please sign in to comment.