in-stream inference