I'm using Tensorflow 2.4.0 on Macbook(arm64, M1 silicon), I get this output after I wanted to check if the GPU in M1 silicon can be used by Tensorflow:
My code:
import tensorflow as tf
print(tf.test.gpu_device_name())
print(tf.config.list_physical_devices('GPU'))
The output:
[]
It looks like my GPU is unavailable. How should I use my GPU on M1 to accelerate trainning?