Causal Attention Mechanism - Coding problem | OneNoughtOne