Research Engineering & Debugging · Problem 1 of 8
Write shape assertions for the tensors in an attention forward pass.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
def attention_forward(q, k, v, mask=None):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Write shape assertions for the tensors in an attention forward pass.
Implement the function/class skeleton in the editor. Any correct approach is accepted.