tensorflow 2.15 "Illegal instruction: 4" Mac M1 processor
@skwyddie  ensorFlow 2.15 is not natively compatible with M1 so you need to switch to a version built for Apple Silicon. TensorFlow 2.10.0-rc0 is the latest release with official M1 support and TensorFlow 2.9.1 is a more stable option, also offering M1 compatibility. Please refer to the TensorFlow M1 installation guide for detailed instructions: https://developer.apple.com/metal/tensorflow-plugin/

Thank you! Same problem happens with TensorFlow 2.10.0-rc0 and 2.9.1 on Mac M1 Pro I can't find any version of tf that works on M1. I've tried everything down to 2.9.1. @skwyddie You're right, there isn't an official TensorFlow version compiled specifically for Apple M1 yet. However, there are workarounds and alternative options you can explore. Here's the guide to install TensorFlow Metal: https://github.com/apple/tensorflow_macos
However, note that it's still under development and might have limitations or compatibility issues.
Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62860">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62860">No</a>
 This issue should be reopened, I am still facing the same issue, even with 2.16
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.15.0

### Custom code

No

### OS platform and distribution

Darwin MacBook-Pro-2.localdomain 23.3.0 Darwin Kernel Version 23.3.0; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64 (Sonoma 14.3 Apple M1 Max)

### Mobile device

_No response_

### Python version

3.11.7

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

$ python3
Python 3.11.7 (main, Dec  4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Illegal instruction: 4
$

I expected to be able to import the module after it is installed. I suspect the newer processor is an issue.

### Standalone code to reproduce the issue

```shell
$ python3
Python 3.11.7 (main, Dec  4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Illegal instruction: 4
$
```


### Relevant log output

_No response_