Qualcomm Interview Question

How does compile mode, train mode and inference mode work and why is it any different?