Skip to content

Commit

Permalink
pin keras~=3.0 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
henrysky committed Jan 3, 2024
1 parent 0baea1e commit 5638b14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Install dependencies
run: |
pip install ${{ matrix.BACKEND }}~=${{ matrix.BACKEND_VER }}
pip install keras coveralls pydot graphviz pytest pytest-cov
pip install keras~=3.0
pip install coveralls pydot graphviz pytest pytest-cov
pip install .
- name: Cache test data
uses: actions/cache@v3
Expand Down
5 changes: 4 additions & 1 deletion astroNN/nn/layers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import math
import keras
from keras.layers.input_spec import InputSpec
try:
from keras.layers import InputSpec
except ImportError:
from keras.layers.input_spec import InputSpec

epsilon = keras.backend.epsilon
initializers = keras.initializers
Expand Down

0 comments on commit 5638b14

Please sign in to comment.