← Questions

Static IR checks for tensor shape and layout in an ML compiler

0
AmazonSystem designLast asked Nov 2026

A system design interview question asked in Amazon's technical phone screen, last asked Nov 2026. It tests compilers, static analysis and ml infrastructure.

A compiler for ML models keeps hitting structural bugs that only show up when the compiled program runs on the accelerator: tensors whose shapes don't line up, or data laid out differently from what the next stage expects. Propose checks…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Technical phone screen · Last asked Nov 202660 min · Live coding in a shared editor that does not run code, plus Leadership Principles questions · No AI

What it tests

compilers · static analysis · ml infrastructure · scoping

Your canvas and the AI tutor open when you unlock this question.