Only call get_output_embeddings when tie_word_embeddings is set (#16667)
This avoids an unnecessary call and avoids problems during
initialization of class hierarchies.
Co-authored-by:
Samuel Melm <samuel.melm@stud.uni-heidelberg.de>
Showing
Please register or sign in to comment