Skip to content

Commit

Permalink
build: made tf optional
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Jul 22, 2024
1 parent c78f189 commit 2ac5168
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages = [{ include = "qiboml", from = "src" }]
python = ">=3.9,<3.12"
numpy = "^1.26.4"
numba = "^0.59.0"
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'" }
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'", optional = true }
# TODO: the marker is a temporary solution due to the lack of the tensorflow-io 0.32.0's wheels for Windows, this package is one of
# the tensorflow requirements
torch = { version = "^2.3.1", optional = true }
Expand Down
1 change: 0 additions & 1 deletion src/qiboml/models/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# import tensorflow as tf



"""
def _keras_factory(module):
for name, layer in inspect.getmembers(module, inspect.isclass):
Expand Down

0 comments on commit 2ac5168

Please sign in to comment.