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
ModuleHolder
subclass forEmbeddingImpl
.See the documentation for
EmbeddingImpl
class to learn what methods it provides, and examples of how to useEmbedding
withtorch::nn::EmbeddingOptions
. See the documentation forModuleHolder
to 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::EmbeddingFromPretrainedOptions
class to learn what optional arguments are supported for this function.
-
static inline Embedding from_pretrained(const torch::Tensor &embeddings, const EmbeddingFromPretrainedOptions &options = {})#