René's URL Explorer Experiment


Title: Embedding Layers — PyTorch main documentation

Description: Embedding layers in PyTorch C++ — Embedding and EmbeddingBag for sparse and dense lookups.

Keywords:

direct link

Domain: docs.pytorch.org


Hey, it has json ld scripts:
    {
       "@context": "https://schema.org",
       "@type": "Article",
       "name": "Embedding Layers",
       "headline": "Embedding Layers",
       "description": "Embedding layers in PyTorch C++ \u2014 Embedding and EmbeddingBag for sparse and dense lookups.",
       "url": "/api/nn/embedding.html",
       "articleBody": "Embedding Layers# Embedding layers map discrete tokens (words, categories, IDs) to dense vector representations. They are the foundation of NLP models and recommendation systems. Embedding: Standard lookup table that maps indices to dense vectors EmbeddingBag: Computes sums or means of embeddings (efficient for sparse features) Key parameters: num_embeddings: Size of the vocabulary (number of unique tokens) embedding_dim: Dimension of each embedding vector padding_idx: Index that outputs zeros (useful for padding tokens) Embedding# class Embedding : public torch::nn::ModuleHolder\u003cEmbeddingImpl\u003e# A ModuleHolder subclass for EmbeddingImpl. See the documentation for EmbeddingImpl class to learn what methods it provides, and examples of how to use Embedding with torch::nn::EmbeddingOptions. See the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Static Functions static inline Embedding from_pretrained(const torch::Tensor \u0026embeddings, const EmbeddingFromPretrainedOptions \u0026options = {})# See the documentation for torch::nn::EmbeddingFromPretrainedOptions class to learn what optional arguments are supported for this function. class EmbeddingImpl : public torch::nn::Cloneable\u003cEmbeddingImpl\u003e# Performs a lookup in a fixed size embedding table. See https://pytorch.org/docs/main/nn.html#torch.nn.Embedding to learn about the exact behavior of this module. See the documentation for torch::nn::EmbeddingOptions class to learn what constructor arguments are supported for this module. Example: Embedding model(EmbeddingOptions(10, 2).padding_idx(3).max_norm(2).norm_type(2.5).scale_grad_by_freq(true).sparse(true)); Public Functions inline EmbeddingImpl(int64_t num_embeddings, int64_t embedding_dim)# explicit EmbeddingImpl(EmbeddingOptions options_)# virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. void reset_parameters()# virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the Embedding module into the given stream. Tensor forward(const Tensor \u0026indices)# Performs a lookup on the embedding table stored in weight using the indices supplied and returns the result. Public Members EmbeddingOptions options# The Options used to configure this Embedding module. Changes to EmbeddingOptions after construction have no effect. Tensor weight# The embedding table. Example: auto embedding = torch::nn::Embedding( torch::nn::EmbeddingOptions(10000, 256) // num_embeddings, embedding_dim .padding_idx(0)); auto indices = torch::tensor({1, 2, 3, 4}); auto embedded = embedding-\u003eforward(indices); // [4, 256] EmbeddingBag# class EmbeddingBag : public torch::nn::ModuleHolder\u003cEmbeddingBagImpl\u003e# A ModuleHolder subclass for EmbeddingBagImpl. See the documentation for EmbeddingBagImpl class to learn what methods it provides, and examples of how to use EmbeddingBag with torch::nn::EmbeddingBagOptions. See the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Static Functions static inline EmbeddingBag from_pretrained(const torch::Tensor \u0026embeddings, const EmbeddingBagFromPretrainedOptions \u0026options = {})# See the documentation for torch::nn::EmbeddingBagFromPretrainedOptions class to learn what optional arguments are supported for this function. class EmbeddingBagImpl : public torch::nn::Cloneable\u003cEmbeddingBagImpl\u003e# Computes sums or means of \u2018bags\u2019 of embeddings, without instantiating the intermediate embeddings. See https://pytorch.org/docs/main/nn.html#torch.nn.EmbeddingBag to learn about the exact behavior of this module. See the documentation for torch::nn::EmbeddingBagOptions class to learn what constructor arguments are supported for this module. Example: EmbeddingBag model(EmbeddingBagOptions(10, 2).max_norm(2).norm_type(2.5).scale_grad_by_freq(true).sparse(true).mode(torch::kSum).padding_idx(1)); Public Functions inline EmbeddingBagImpl(int64_t num_embeddings, int64_t embedding_dim)# explicit EmbeddingBagImpl(EmbeddingBagOptions options_)# virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. void reset_parameters()# virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the EmbeddingBag module into the given stream. Tensor forward(const Tensor \u0026input, const Tensor \u0026offsets = {}, const Tensor \u0026per_sample_weights = {})# Public Members EmbeddingBagOptions options# The Options used to configure this EmbeddingBag module. Tensor weight# The embedding table. Friends friend struct torch::nn::AnyModuleHolder",
       "author": {
         "@type": "Organization",
         "name": "PyTorch Contributors",
         "url": "https://pytorch.org"
       },
       "image": "https://pytorch.org/docs/stable/_static/img/pytorch_seo.png",
       "mainEntityOfPage": {
         "@type": "WebPage",
         "@id": "/api/nn/embedding.html"
       },
       "datePublished": "2023-01-01T00:00:00Z",
       "dateModified": "2023-01-01T00:00:00Z"
     }
 

docsearch:languageen
llm:site-typedocumentation
llm:frameworkPyTorch
llm:descriptionEmbedding layers in PyTorch C++ — Embedding and EmbeddingBag for sparse and dense lookups.
llm:navigation-filehttps://pytorch.org/docs/stable/llms.txt
llm:sitemaphttps://pytorch.org/docs/stable/sitemap.xml
llm:versionmain
llm:projectPyTorch
llm:page-typedocumentation
og:imagehttps://docs.pytorch.org/docs/stable/_static/img/pytorch_seo.png
None3

Links:

Skip to main contenthttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#main-content
Home https://docs.pytorch.org/cppdocs/index.html
mainhttps://docs.pytorch.org/cppdocs/index.html
Installing C++ Distributions of PyTorch https://docs.pytorch.org/cppdocs/installing.html
The C++ Frontend https://docs.pytorch.org/cppdocs/frontend.html
C++ API Reference https://docs.pytorch.org/cppdocs/api/index.html
ATen: Tensor Library https://docs.pytorch.org/cppdocs/api/aten/index.html
C10: Core Utilities https://docs.pytorch.org/cppdocs/api/c10/index.html
Autograd: Automatic Differentiation https://docs.pytorch.org/cppdocs/api/autograd/index.html
CUDA Support https://docs.pytorch.org/cppdocs/api/cuda/index.html
XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Neural Network Modules (torch::nn) https://docs.pytorch.org/cppdocs/api/nn/index.html
Optimizers (torch::optim) https://docs.pytorch.org/cppdocs/api/optim/index.html
Data Loading (torch::data) https://docs.pytorch.org/cppdocs/api/data/index.html
Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Torch Library API https://docs.pytorch.org/cppdocs/api/library/index.html
Torch Stable API https://docs.pytorch.org/cppdocs/api/stable/index.html
FAQ https://docs.pytorch.org/cppdocs/faq.html
Go to pytorch.org https://pytorch.org
Xhttps://x.com/PyTorch
GitHubhttps://github.com/pytorch/pytorch
PyTorch Forumhttps://discuss.pytorch.org/
PyPihttps://pypi.org/project/torch/
mainhttps://docs.pytorch.org/cppdocs/index.html
Installing C++ Distributions of PyTorch https://docs.pytorch.org/cppdocs/installing.html
The C++ Frontend https://docs.pytorch.org/cppdocs/frontend.html
C++ API Reference https://docs.pytorch.org/cppdocs/api/index.html
ATen: Tensor Library https://docs.pytorch.org/cppdocs/api/aten/index.html
C10: Core Utilities https://docs.pytorch.org/cppdocs/api/c10/index.html
Autograd: Automatic Differentiation https://docs.pytorch.org/cppdocs/api/autograd/index.html
CUDA Support https://docs.pytorch.org/cppdocs/api/cuda/index.html
XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Neural Network Modules (torch::nn) https://docs.pytorch.org/cppdocs/api/nn/index.html
Optimizers (torch::optim) https://docs.pytorch.org/cppdocs/api/optim/index.html
Data Loading (torch::data) https://docs.pytorch.org/cppdocs/api/data/index.html
Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Torch Library API https://docs.pytorch.org/cppdocs/api/library/index.html
Torch Stable API https://docs.pytorch.org/cppdocs/api/stable/index.html
FAQ https://docs.pytorch.org/cppdocs/faq.html
Go to pytorch.org https://pytorch.org
Xhttps://x.com/PyTorch
GitHubhttps://github.com/pytorch/pytorch
PyTorch Forumhttps://discuss.pytorch.org/
PyPihttps://pypi.org/project/torch/
ATen: Tensor Libraryhttps://docs.pytorch.org/cppdocs/api/aten/index.html
Tensor Classhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html
Tensor Creationhttps://docs.pytorch.org/cppdocs/api/aten/creation.html
Tensor Indexinghttps://docs.pytorch.org/cppdocs/api/aten/indexing.html
Tensor Accessorshttps://docs.pytorch.org/cppdocs/api/aten/accessors.html
C10: Core Utilitieshttps://docs.pytorch.org/cppdocs/api/c10/index.html
Device and DeviceTypehttps://docs.pytorch.org/cppdocs/api/c10/device.html
Device Guardshttps://docs.pytorch.org/cppdocs/api/c10/guards.html
Streamshttps://docs.pytorch.org/cppdocs/api/c10/streams.html
Core Typeshttps://docs.pytorch.org/cppdocs/api/c10/types.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/c10/utilities.html
Autograd: Automatic Differentiationhttps://docs.pytorch.org/cppdocs/api/autograd/index.html
Gradient Computationhttps://docs.pytorch.org/cppdocs/api/autograd/gradient.html
Custom Autograd Functionshttps://docs.pytorch.org/cppdocs/api/autograd/custom_functions.html
Gradient Modeshttps://docs.pytorch.org/cppdocs/api/autograd/modes.html
CUDA Supporthttps://docs.pytorch.org/cppdocs/api/cuda/index.html
CUDA Streamshttps://docs.pytorch.org/cppdocs/api/cuda/streams.html
CUDA Guardshttps://docs.pytorch.org/cppdocs/api/cuda/guards.html
CUDA Utility Functionshttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html
XPU Supporthttps://docs.pytorch.org/cppdocs/api/xpu/index.html
XPU Streamshttps://docs.pytorch.org/cppdocs/api/xpu/streams.html
XPU Utility Functionshttps://docs.pytorch.org/cppdocs/api/xpu/utilities.html
Neural Network Modules (torch::nn)https://docs.pytorch.org/cppdocs/api/nn/index.html
Containershttps://docs.pytorch.org/cppdocs/api/nn/containers.html
Convolution Layershttps://docs.pytorch.org/cppdocs/api/nn/convolution.html
Pooling Layershttps://docs.pytorch.org/cppdocs/api/nn/pooling.html
Linear Layershttps://docs.pytorch.org/cppdocs/api/nn/linear.html
Activation Functionshttps://docs.pytorch.org/cppdocs/api/nn/activation.html
Normalization Layershttps://docs.pytorch.org/cppdocs/api/nn/normalization.html
Dropout Layershttps://docs.pytorch.org/cppdocs/api/nn/dropout.html
Embedding Layershttps://docs.pytorch.org/cppdocs/api/nn/embedding.html
Recurrent Layershttps://docs.pytorch.org/cppdocs/api/nn/recurrent.html
Transformer Layershttps://docs.pytorch.org/cppdocs/api/nn/transformer.html
Loss Functionshttps://docs.pytorch.org/cppdocs/api/nn/loss.html
Functional APIhttps://docs.pytorch.org/cppdocs/api/nn/functional.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/nn/utilities.html
Optimizers (torch::optim)https://docs.pytorch.org/cppdocs/api/optim/index.html
Gradient Descent Optimizershttps://docs.pytorch.org/cppdocs/api/optim/gradient_descent.html
Adaptive Learning Rate Optimizershttps://docs.pytorch.org/cppdocs/api/optim/adaptive.html
Second-Order Optimizershttps://docs.pytorch.org/cppdocs/api/optim/second_order.html
Learning Rate Schedulershttps://docs.pytorch.org/cppdocs/api/optim/schedulers.html
Data Loading (torch::data)https://docs.pytorch.org/cppdocs/api/data/index.html
Datasetshttps://docs.pytorch.org/cppdocs/api/data/datasets.html
DataLoaderhttps://docs.pytorch.org/cppdocs/api/data/dataloader.html
Samplershttps://docs.pytorch.org/cppdocs/api/data/samplers.html
Transformshttps://docs.pytorch.org/cppdocs/api/data/transforms.html
Serialization (torch::serialize)https://docs.pytorch.org/cppdocs/api/serialize/index.html
Saving and Loadinghttps://docs.pytorch.org/cppdocs/api/serialize/save_load.html
Archiveshttps://docs.pytorch.org/cppdocs/api/serialize/archives.html
Checkpointshttps://docs.pytorch.org/cppdocs/api/serialize/checkpoints.html
Torch Library APIhttps://docs.pytorch.org/cppdocs/api/library/index.html
Operator Registrationhttps://docs.pytorch.org/cppdocs/api/library/registration.html
Custom Classeshttps://docs.pytorch.org/cppdocs/api/library/custom_classes.html
Library Versioninghttps://docs.pytorch.org/cppdocs/api/library/versioning.html
Torch Stable APIhttps://docs.pytorch.org/cppdocs/api/stable/index.html
Library Registration Macroshttps://docs.pytorch.org/cppdocs/api/stable/registration.html
Stable Operatorshttps://docs.pytorch.org/cppdocs/api/stable/operators.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/stable/utilities.html
https://docs.pytorch.org/cppdocs/index.html
C++ API Referencehttps://docs.pytorch.org/cppdocs/api/index.html
Neural Network Modules (torch::nn)https://docs.pytorch.org/cppdocs/api/nn/index.html
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#embedding-layers
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#embedding
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
EmbeddingImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImplE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn9EmbeddingE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
EmbeddingImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_impl
EmbeddingImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_impl
Embeddinghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
Embeddinghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn9EmbeddingE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn9Embedding15from_pretrainedERKN5torch6TensorERK30EmbeddingFromPretrainedOptions
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
EmbeddingImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImplE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImplE
https://pytorch.org/docs/main/nn.html#torch.nn.Embeddinghttps://pytorch.org/docs/main/nn.html#torch.nn.Embedding
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl13EmbeddingImplE7int64_t7int64_t
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl13EmbeddingImplE16EmbeddingOptions
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_impl_1a1b9c00da3fd72a1edc5faf44c5fbb22c
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl16reset_parametersEv
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4NK5torch2nn13EmbeddingImpl12pretty_printERNSt7ostreamE
Embeddinghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl7forwardERK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl7optionsE
Embeddinghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl6weightE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#embeddingbag
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
EmbeddingBagImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImplE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn12EmbeddingBagE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
EmbeddingBagImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_bag_impl
EmbeddingBagImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_bag_impl
EmbeddingBaghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_bag
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
EmbeddingBaghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn12EmbeddingBagE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn12EmbeddingBag15from_pretrainedERKN5torch6TensorERK33EmbeddingBagFromPretrainedOptions
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
EmbeddingBagImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImplE
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImplE
https://pytorch.org/docs/main/nn.html#torch.nn.EmbeddingBaghttps://pytorch.org/docs/main/nn.html#torch.nn.EmbeddingBag
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl16EmbeddingBagImplE7int64_t7int64_t
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl16EmbeddingBagImplE19EmbeddingBagOptions
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_bag_impl_1adc059798777fadac68dba1468a2de24e
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl16reset_parametersEv
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4NK5torch2nn16EmbeddingBagImpl12pretty_printERNSt7ostreamE
EmbeddingBaghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_bag
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl7forwardERK6TensorRK6TensorRK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl7optionsE
EmbeddingBaghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#PyTorchclasstorch_1_1nn_1_1_embedding_bag
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl6weightE
previous Dropout Layers https://docs.pytorch.org/cppdocs/api/nn/dropout.html
next Recurrent Layers https://docs.pytorch.org/cppdocs/api/nn/recurrent.html
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html
previous Dropout Layers https://docs.pytorch.org/cppdocs/api/nn/dropout.html
next Recurrent Layers https://docs.pytorch.org/cppdocs/api/nn/recurrent.html
Embeddinghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#embedding
torch::nn::Embeddinghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn9EmbeddingE
from_pretrained()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn9Embedding15from_pretrainedERKN5torch6TensorERK30EmbeddingFromPretrainedOptions
torch::nn::EmbeddingImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImplE
EmbeddingImpl()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl13EmbeddingImplE7int64_t7int64_t
EmbeddingImpl()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl13EmbeddingImplE16EmbeddingOptions
reset()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl5resetEv
reset_parameters()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl16reset_parametersEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4NK5torch2nn13EmbeddingImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl7forwardERK6Tensor
optionshttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl7optionsE
weighthttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn13EmbeddingImpl6weightE
EmbeddingBaghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#embeddingbag
torch::nn::EmbeddingBaghttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn12EmbeddingBagE
from_pretrained()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn12EmbeddingBag15from_pretrainedERKN5torch6TensorERK33EmbeddingBagFromPretrainedOptions
torch::nn::EmbeddingBagImplhttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImplE
EmbeddingBagImpl()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl16EmbeddingBagImplE7int64_t7int64_t
EmbeddingBagImpl()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl16EmbeddingBagImplE19EmbeddingBagOptions
reset()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl5resetEv
reset_parameters()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl16reset_parametersEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4NK5torch2nn16EmbeddingBagImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl7forwardERK6TensorRK6TensorRK6Tensor
optionshttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl7optionsE
weighthttps://docs.pytorch.org/cppdocs/api/nn/embedding.html#_CPPv4N5torch2nn16EmbeddingBagImpl6weightE
Show Source https://docs.pytorch.org/cppdocs/_sources/api/nn/embedding.md.txt
ExecuTorchhttps://docs.pytorch.org/executorch
Helionhttps://docs.pytorch.org/helion
torchaohttps://docs.pytorch.org/ao
kinetohttps://github.com/pytorch/kineto
torchtitanhttps://github.com/pytorch/torchtitan
TorchRLhttps://docs.pytorch.org/rl
torchvisionhttps://docs.pytorch.org/vision
torchaudiohttps://docs.pytorch.org/audio
tensordicthttps://docs.pytorch.org/tensordict
PyTorch on XLA Deviceshttps://docs.pytorch.org/xla
View Docshttps://docs.pytorch.org/docs/stable/index.html
View Tutorialshttps://docs.pytorch.org/tutorials
View Resourceshttps://pytorch.org/resources
Privacy Policyhttps://www.linuxfoundation.org/privacy/
https://www.facebook.com/pytorch
https://twitter.com/pytorch
https://www.youtube.com/pytorch
https://www.linkedin.com/company/pytorch
https://pytorch.slack.com
https://pytorch.org/wechat
Policieshttps://www.linuxfoundation.org/legal/policies
Trademark Usagehttps://www.linuxfoundation.org/trademark-usage
Privacy Policyhttp://www.linuxfoundation.org/privacy
Cookies Policyhttps://opensource.fb.com/legal/cookie-policy
Sphinxhttps://www.sphinx-doc.org/
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.