He probably didn't use GPU acceleration
https://developer.apple.com/metal/tensorflow-plugin/
And also try this to get a significant boost:
tf.config.run_functions_eagerly(False)https://developer.apple.com/metal/tensorflow-plugin/
And also try this to get a significant boost:
tf.config.run_functions_eagerly(False)“CPU performance is faster than GPU on your network. Find out if your workload is sufficient to take advantage of the GPU. On small networks running with small batch sizes, the CPU may perform faster overall due to the overhead related to dispatching computations to the GPU. This will get amortized when the batch or model sizes grow, since the GPU can then take better advantage of the parallelism in performing the computations.”
This is literally NVIDIAs moat: The perpetual immaturity of alternative platforms.