AMD interview question

how would you optimize an AI workflow