Learning flows of control systems