Emergent Riemannian geometry over learning discrete computations on continuous manifolds