Class EmbeddingBag¶
Defined in File embedding.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::ModuleHolder< EmbeddingBagImpl >(Template Class ModuleHolder)
Class Documentation¶
-
class EmbeddingBag : public torch::nn::ModuleHolder<EmbeddingBagImpl>¶
A
ModuleHoldersubclass forEmbeddingBagImpl.See the documentation for
EmbeddingBagImplclass to learn what methods it provides, and examples of how to useEmbeddingBagwithtorch::nn::EmbeddingBagOptions. See the documentation forModuleHolderto learn about PyTorch’s module storage semantics.Public Static Functions
-
static inline EmbeddingBag from_pretrained(const torch::Tensor &embeddings, const EmbeddingBagFromPretrainedOptions &options = {})¶
See the documentation for
torch::nn::EmbeddingBagFromPretrainedOptionsclass to learn what optional arguments are supported for this function.
-
static inline EmbeddingBag from_pretrained(const torch::Tensor &embeddings, const EmbeddingBagFromPretrainedOptions &options = {})¶