Poly-Encoder
Poly-Encoder copied to clipboard
About the implementation of Poly Encoder
Hi @chijames, thanks so much for this wonderful project! After digging into the code, I have two questions:
-
Is there any special reason why masking is not implemented in this section? https://github.com/chijames/Poly-Encoder/blob/e5299e319c73666485667e8277d8ff0e2b7e253e/encoder.py#L72-L78
-
Can we speed up the construction of
poly_code_embeddingsby usingnn.Parameters? In this way, we don't need to createpoly_idsand move it to GPU in every batches.
Thanks for your reply!