I would like to perform both the “mean” and “sum” method on one BoW feature. Docs show that EmbeddingBag could be initialized with the same weights using the from_pretrained method. But it seems the underlying THPVariable_make_subclass function would initialize different weight tensors into the computational graph.