hi @Mubsi,
While I was doing week 3 assignment for exercise 2. Decoder, in the forward method, where instruction states to create a subsequent mask and pass it to same device as inputs, so when I opened the notebook the section already mentioned this step as
tgt_seq_len=None
tgt_subsequent_mask= None.to(x.device)
So I only replaced None with code thinking x is the device although I didn’t find in the arguments about this mentioned but markdown mentioned target sequence as x.
When I run down the grade function it run down successfully but failed in unittest ![]()
That’s when I looked into hints which did mention the correct device as tgt ![]()
But this caused unnecessary confusion and failed unittest, so instead of mentioning as x.device either mention the tgt_subsequent_mask as just None or None.to(None.device) preventing any unnecessary confusion.
Regards
DP

