5 ms·
He probably didn't use GPU acceleration https://developer.apple.com/metal/tensorflow-plugin/ https://developer.apple.com/metal/tensorflow-plugin/ And also try
by WhereIsTheTruth 3y ago
He probably didn't use GPU acceleration
https://developer.apple.com/metal/tensorflow-plugin/ https://developer.apple.com/metal/tensorflow-plugin/
And also try this to get a significant boost:
tf.config.run_functions_eagerly(False)
- incrudible 3y agoYes they did, in fact disabling GPU acceleration is helping because the CPU is faster. This is literally NVIDIAs moat: The perpetual immaturity of alternative platforms.
- i_don_t_know 3y agoFrom the Troubleshooting section on the website linked by the parent: “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.”