3 #include <torch/nn/cloneable.h> 4 #include <torch/nn/pimpl.h> 5 #include <torch/types.h> 17 TORCH_ARG(int64_t, count);
19 TORCH_ARG(int64_t, dimension);
29 void reset()
override;
32 void pretty_print(std::ostream& stream)
const override;
50 TORCH_MODULE(Embedding);
EmbeddingOptions options
The Options used to configure this Embedding module.
Options for the Embedding module.
Performs a lookup in a fixed size embedding table.
The clone() method in the base Module class does not have knowledge of the concrete runtime type of i...
Tensor weight
The embedding table.