C3M3_Assignment - Hint to define padding_mask

Programming Assignment: Building a Translation System

def forward(self, src):

Posting codes from grade function codes which asses your assignment grades is direct violation of Code of Conduct. Avoid posting any part of the codes that you wrote directly on the public posts. If a mentor wants to look at your codes, they will ask you to send them by DMs, until then post only screenshots of error encountered or your failed test results.

Can someone please provide hint how to define padding_mask, as there is no hints for it in lab.

Posting codes from grade function codes which asses your assignment grades is direct violation of Code of Conduct. Avoid posting any part of the codes that you wrote directly on the public posts. If a mentor wants to look at your codes, they will ask you to send them by DMs, until then post only screenshots of error encountered or your failed test results.

Failed test case: Failed forward pass test.
Expected: None
Got: Mask size should match input size

Hello @ChaseMcCain,

That part is about padding mask instead of causal mask. Check out section 4 again.

Cheers,
Raymond

1 Like

Thanks!

1 Like

You are welcome, @ChaseMcCain :wink:

DP removed your code because we can’t post solution here, but please don’t worry about that, and happy learning :wink: :wink:

Cheers,
Raymond

1 Like

I will close this topic to mark it completed. Feel free to open new topics if needed :wink: :wink: