In my case I am using Miniconda.
I also encountered encountered the above problem. But when I installed python 3.8 in a new environment (So that my other dependencies are not affected), I was able to solve the issue.(Mine is M1 Pro chip, May also work for M1 and M1 max)
conda create --name tensor-env python = 3.8 #creating new environment named "tensor-env" with python version 3.8
conda activate tensor-env
# All the below 3 installation is necessary to make use of M1's GPU
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal
And if all the above installations are successful, then you can use Tensorflow which is designed to be used in Apple M1 GPU.