Post

Replies

Boosts

Views

Activity

MPSGraph adamUpdateWithLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:beta1PowerTensor:beta2PowerTensor:valuesTensor:momentumTensor:velocityTensor:gradientTensor:name:]: unrecognized selector sent to instance 0x60000f3adf80
Hi, I am running tensorflow-macos 2.11 and tensorflow-metal 0.7.0 on my Intel MacBook Pro. I noted that we needed to use tf.keras.optimizers.legacy.Adam because of the XLA changes in the TensorFlow code. However, I get the following error: 2022-12-15 00:03:38.306 python[9202:427797] -[MPSGraph adamUpdateWithLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:beta1PowerTensor:beta2PowerTensor:valuesTensor:momentumTensor:velocityTensor:gradientTensor:name:]: unrecognized selector sent to instance 0x60000f3adf80 When I change to tf.keras.optimizers.legacy.SGD it works. Previously I was training on tensorflow-macos 2.10 and tensorflow-metal 0.6.0 and using tf.keras.optimizers.Adam works fine. Looks like the Adam optimiser under tensorflow-metal 0.7.0 is not working?
4
0
842
Dec ’22