Optimize Tensor Runtime Kernels
WaymoMachine Learning Engineer · Technical ScreenLast updated
This question evaluates competency in optimizing machine learning framework runtimes for accelerators, covering profiling and performance analysis of tensor kernels, memory layout design, operator scheduling and kernel fusion while weighing trade-offs among throughput, latency, memory usage, numerical correctness, and maintainability.
You are responsible for optimizing an ML framework runtime on an accelerator. A model has high latency and occasional memory pressure. Explain how you would profile and optimize tensor kernels, memory layout, operator scheduling, and kernel fusion. Include tradeoffs between throughput, latency, memory usage, numerical correctness, and maintainability.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.