Hi,
I have seen people using tied embeddings in machine translation,


but since the source and target languages will have different vocabularies, how can we use target embeddings?


How to implement tied embeddings in Pytorch? Just using the same embedding would word, but what if I have defined my encoder and decoder as separate classes?


Thanks.