Skip to content

Commit

Permalink
Pin TF version to 2.5.0 or lower (#1613)
Browse files Browse the repository at this point in the history
* pin tf version

* tf version to <= 2.5.0

* update actions

* update

Co-authored-by: Haifeng Jin <haifeng-jin@users.noreply.github.com>
  • Loading branch information
haifeng-jin and haifeng-jin committed Aug 7, 2021
1 parent bd3dcaf commit e503c51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -e ".[tests]" --progress-bar off --upgrade
pip install -e ".[tests]" --progress-bar off
- name: Test with pytest
run: |
pytest --cov=autokeras --cov-report xml:coverage.xml
Expand Down
4 changes: 2 additions & 2 deletions autokeras/engine/tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ def get_output_layer(tensor):
for layer in model.layers:
if isinstance(layer, tf.keras.layers.InputLayer):
continue
if not isinstance(layer, preprocessing.PreprocessingLayer):
break
input_node = nest.flatten(layer.input)[0]
if input_node is tensor:
if not isinstance(layer, preprocessing.PreprocessingLayer):
break
return layer
return None

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
install_requires=[
"packaging",
"keras-tuner>=1.0.2",
"tensorflow>=2.3.0",
"tensorflow<=2.5.0,>=2.3.0",
"scikit-learn",
"pandas",
],
Expand Down

0 comments on commit e503c51

Please sign in to comment.