bert
bert copied to clipboard
The feature of bidirection
i want to know where to apply the characteristic of bidirection in modeling.py. Thank you very much.
Transformers are bidirectional by default. To make them unidirectional a special attention mask needs to be applied. So the self-attention part of the transformer is where the bidirectionality comes in.