Either you port Tensorflow (Apple)[1] or PyTorch to your platform or you allow CUDA to run on your hardware (AMD) [2]. Companies are incentives to not have NVIDIA having a monopoly but the thing is that CUDA is a huge moat due to compatibility of all frameworks and everyone knows it. Also, all of the cloud or on premises providers use NVIDIA regardless.
[1] https://developer.apple.com/metal/tensorflow-plugin/
[2] https://www.xda-developers.com/nvidia-cuda-amd-zluda/