Obviously you can use cuda to write more than ML algos, but that’s its overwhelming use case.
Thus my point is if AMD ported PyTorch to their hardware (and PT is not cuda-only) it would create a more level playing field on which they could compete (in a cousin vs cousin battle) by eliminating the switching cost for the majority of developers.
This is the same reason cpu mfrs have compiler ports but generally don’t have to worry about instruction set level compatibility.