Unexpected output when using src_key_padding_mask

Sorry for the crosspost (should have posted here) but got any thoughts on this?