Doing compute in space for ML is perfectly possible (i.e. https://en.wikipedia.org/wiki/Phi-Sat-2), making it competitive with terrestrial compute is a much harder question to solve.