Deppending on your tensorflow-macos and tensorflow-metal you can try import legacy optimizer
from tensorflow.keras.optimizers.legacy import Adam
and use it on model compile stage.
Post
Replies
Boosts
Views
Activity
You need not just tensorflow, but tensorflow-macos and also metal plugin.
Checkout this resource click
Also as i know last supported python version was 3.10
I have same problem.
env:
python 3.10.9 (also checked 3.8)
tensorflow-macos 2.11.0
tensorflow-metal 0.7.0
Ive used tensorflow-macos==2.9 and tensorflow-metal ==0.5.0/0.5.1.
Still same.
First:
If i use latest versions i receive on fit() method error: tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:418 : NOT_FOUND: could not find registered platform with id: 0x16997a500
So i worked around with this: from tensorflow.keras.optimizers.legacy import Adam
Now: fit() works, but somewhere in middle goes to deadlock
CPU fitting works as intended.