How do you optimize inference latency?

Technical