C5_W4: scaled_dot_product_attention implementation: How do I know what type of mask?

In Excercise-3, Reminder : The boolean mask parameter can be passed in as none or as either padding or look-ahead.

How do I check the type of the boolean mask input parameter so as to create the right mask - either padding or look-ahead?

I realize this information is not needed to implement this function.

2 Likes