Explain the steps such as generating the trained model, optimizing the trained model and creating an application which uses the optimized model to accelerate the design.