cbrnr / sleepecg

Sleep stage detection using ECG
BSD 3-Clause "New" or "Revised" License
90 stars 23 forks source link

Refine TensorFlow requirement #148

Closed cbrnr closed 1 year ago

cbrnr commented 1 year ago

TensorFlow works with Python 3.11 on all platforms except macOS. Specifically, there is an optimized tensorflow-macos package, which leverages some optimized Apple APIs to make it faster, so we should require that package instead. I still need to test if this really works, I will report back.

cbrnr commented 1 year ago

It works on my Mac (ARM64, Python 3.10). I guess it is safe to use tensorflow-macos, although the official tensorflow package also supports macOS (but only x86). But I'm hoping that it just works (at least on my machine it does). I'm also adding tensorflow-metal (see https://developer.apple.com/metal/tensorflow-plugin/). Python 3.11 builds should be available soon.