You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TransformerEncoder model in CMD 14 is instantiated in 'training' mode. As such, the dropout layers are not frozen during inference. As such, re-running the embedding model multiple times on the same input tensors results in different embeddings.
Fix: Add a model.eval() call after the model is instantiated (cmd 14, line 11).
The text was updated successfully, but these errors were encountered:
The TransformerEncoder model in CMD 14 is instantiated in 'training' mode. As such, the dropout layers are not frozen during inference. As such, re-running the embedding model multiple times on the same input tensors results in different embeddings.
Fix: Add a model.eval() call after the model is instantiated (cmd 14, line 11).
The text was updated successfully, but these errors were encountered: