Hi, I am facing the same issue using the same python code. The line that causes the crash is model.fit(x_train, y_train, epochs=10)
System Version: macOS 11.3 (20E232)
Kernel Version: Darwin 20.4.0
Model Name: MacBook Air
Model Identifier: MacBookAir10,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 8 GB
System Firmware Version: 6723.101.4
OS Loader Version: 6723.101.4
% pip list | grep tensorflow
tensorflow-estimator 2.7.0
tensorflow-macos 2.6.0
tensorflow-metal 0.2.0
% python --version
Python 3.8.12
% conda --version
conda 4.10.3