Class Embedding#
Defined in File embedding.h
Page Contents
Inheritance Relationships#
Base Type#
public torch::nn::ModuleHolder< EmbeddingImpl >(Template Class ModuleHolder)
Class Documentation#
- 
class Embedding : public torch::nn::ModuleHolder<EmbeddingImpl>#
 A
ModuleHoldersubclass forEmbeddingImpl.See the documentation for
EmbeddingImplclass to learn what methods it provides, and examples of how to useEmbeddingwithtorch::nn::EmbeddingOptions. See the documentation forModuleHolderto learn about PyTorch’s module storage semantics.Public Static Functions
- 
static inline Embedding from_pretrained(const torch::Tensor &embeddings, const EmbeddingFromPretrainedOptions &options = {})#
 See the documentation for
torch::nn::EmbeddingFromPretrainedOptionsclass to learn what optional arguments are supported for this function.
- 
static inline Embedding from_pretrained(const torch::Tensor &embeddings, const EmbeddingFromPretrainedOptions &options = {})#