From Points to Functions: Infinite-dimensional Representations in Diffusion Models