Write the elementwise ReLU kernel as a pure block operation: load values, clamp them, and return a new buffer.
Required APIdef relu_kernel(values):
return output_valuesBehaviorThink through the mechanism first if you want the extra reasoning step. It never blocks the editor.
relu_kernel([-2, 0, 3])kernel output matches the ReLU contract
relu_kernel([1, 2])positive values pass through
2 hidden edge tests run after the visible contract passes.
Run Tests to see the contract verdicts here.