q-optimize / c3

Toolset for control, calibration and characterization of physical systems
https://c3-toolset.readthedocs.io/
Apache License 2.0
66 stars 36 forks source link

Fix TensorFlow dependency #241

Closed nwittler closed 7 months ago

nwittler commented 10 months ago

What

Lock tf version to 2.14.1

Why

tf version 2.15 changed an interface to check for tensor types, resulting in AttributeError: module 'tensorflow.python.framework.ops' has no attribute 'Tensor'

How

Update setup.py

Remarks

While unmaintained right now, this keeps dev functional.

Checklist

Please include and complete the following checklist. Your Pull Request is (in most cases) not ready for review until the following have been completed. You can create a draft PR while you are still completing the checklist. Check the Contribution Guidelines for more details. You can mark an item as complete with the - [x] prefix

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (48b7917) 76.67% compared to head (112c875) 76.67%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #241 +/- ## ======================================= Coverage 76.67% 76.67% ======================================= Files 38 38 Lines 5873 5873 ======================================= Hits 4503 4503 Misses 1370 1370 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.