Einstein made intensive use of non-Eucliden geometry already developed by mathematicians. The difference being that the real manifolds (well, one of them) as imagined by the mathematicians were supposed by Einstein to correspond to real spacetime.
Was Einstein influenced in forming his ideas by the ideas of people like Riemann? Was he the first to consider the spaces or manifolds as corresponding to real spacetime?