I very recently noticed installation of the tensorflow-metal plugin would lead to a CNN model (loaded from a Keras-tuner checkpoint) gives completely different and unreliable predictions, soon below:
Without tensorflow-metal
With tensorflow-metal
The same code and dataset, with the only difference being tensorflow-metal. Also tried both tensorflow-macos 2.12 and 2.13, same issue.
Other info: MacBook Air M2 with 8-core M2 chip, macOS Ventura 13.5.1 (22G90) Python 3.9.6 installed by anaconda 3
The source code is related to a unpublished Paper and should be publicly available by Oct. 2023 and I would unload the code to recreate the issue as soon as possible.