Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deel-lip supports until TensorFlow 2.15 #90

Merged
merged 6 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
python-version: [3.7, "3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ jobs:
- python-version: 3.9
tf-version: 2.7
- python-version: "3.10"
tf-version: latest
tf-version: 2.11
- python-version: "3.10"
tf-version: 2.15

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ distance estimation.
This library provides an efficient implementation of **k-Lispchitz
layers for keras**.

> [!CAUTION]
> **Incompatibility with TensorFlow >= 2.16 and Keras 3**
>
> Due to significant changes introduced in TensorFlow version 2.16 and Keras 3, this
> package is currently incompatible with TensorFlow versions 2.16 and above. Users are
> advised to use TensorFlow versions lower than 2.16 to ensure compatibility and proper
> functionality of this package.
>
> We are actively working on updating the package to support Keras 3. Please stay tuned
> for updates. For now, make sure to install an earlier version of TensorFlow by
> specifying it in your environment.

## 📚 Table of contents

- [📚 Table of contents](#-table-of-contents)
Expand Down
7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ per-file-ignores =

[tox:tox]
envlist =
py{37,38,39,310,311}-tf{22,23,24,25,26,27,28,29,210,211,212,213,214,latest}
py{37,38,39,310,311}-tf{22,23,24,25,26,27,28,29,210,211,212,213,214,215,216,217,latest}
py{37,38,39,310,311}-lint

[testenv]
Expand All @@ -21,14 +21,19 @@ deps =
tf24: tensorflow ~= 2.4.0
tf25: tensorflow ~= 2.5.0
tf26: tensorflow ~= 2.6.0
tf27: numpy==1.23.5
tf27: tensorflow ~= 2.7.0
tf28: tensorflow ~= 2.8.0
tf29: tensorflow ~= 2.9.0
tf210: tensorflow ~= 2.10.0
tf211: numpy==1.24.4
tf211: tensorflow ~= 2.11.0
tf212: tensorflow ~= 2.12.0
tf213: tensorflow ~= 2.13.0
tf214: tensorflow ~= 2.14.0
tf215: tensorflow ~= 2.15.0
tf216: tensorflow ~= 2.16.0
tf217: tensorflow ~= 2.17.0

commands =
python -m unittest
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
url="https://github.com/deel-ai/deel-lip",
packages=setuptools.find_namespace_packages(include=["deel.*"]),
include_package_data=True,
install_requires=["numpy", "tensorflow~=2.2"],
install_requires=["numpy", "tensorflow >= 2.2.0, < 2.16.0"],
license="MIT",
extras_require={"dev": dev_requires, "docs": docs_requires},
classifiers=[
Expand Down