Home
last modified time | relevance | path

Searched refs:ModuleHolder (Results 1 – 13 of 13) sorted by relevance

/aosp_15_r20/external/pytorch/torch/csrc/api/include/torch/nn/
H A Dpimpl.h26 class ModuleHolder : torch::detail::ModuleHolderIndicator {
43 ModuleHolder() : impl_(default_construct()) { in ModuleHolder() function
54 /* implicit */ ModuleHolder(std::nullptr_t) : impl_(nullptr) {} in ModuleHolder() function
64 explicit ModuleHolder(Head&& head, Tail&&... tail) in ModuleHolder() function
71 /* implicit */ ModuleHolder(std::shared_ptr<Contained> module) in ModuleHolder() function
157 const nn::ModuleHolder<ModuleType>& module) {
165 const nn::ModuleHolder<ModuleType>& module) {
173 nn::ModuleHolder<ModuleType>& module) {
193 class Name : public torch::nn::ModuleHolder<ImplType> { /* NOLINT */ \
195 using torch::nn::ModuleHolder<ImplType>::ModuleHolder; \
H A Dmodule.h486 ModuleHolder<ModuleType> module_holder);
518 ModuleHolder<ModuleType> module_holder);
666 ModuleHolder<ModuleType> module_holder) { in register_module()
681 ModuleHolder<ModuleType> module_holder) { in replace_module()
/aosp_15_r20/external/pytorch/torch/csrc/api/include/torch/nn/modules/
H A Dembedding.h60 class Embedding : public torch::nn::ModuleHolder<EmbeddingImpl> {
62 using torch::nn::ModuleHolder<EmbeddingImpl>::ModuleHolder;
139 class EmbeddingBag : public torch::nn::ModuleHolder<EmbeddingBagImpl> {
141 using torch::nn::ModuleHolder<EmbeddingBagImpl>::ModuleHolder;
/aosp_15_r20/external/pytorch/torch/csrc/api/include/torch/nn/modules/container/
H A Dsequential.h229 void push_back(const ModuleHolder<M>& module_holder) { in push_back()
236 void push_back(std::string name, const ModuleHolder<M>& module_holder) { in push_back()
375 class Sequential : public torch::nn::ModuleHolder<SequentialImpl> {
377 using torch::nn::ModuleHolder<SequentialImpl>::ModuleHolder;
379 Sequential() : ModuleHolder() {} in Sequential()
385 : ModuleHolder(std::make_shared<SequentialImpl>(named_modules)) {} in Sequential()
H A Dmodulelist.h109 void push_back(const ModuleHolder<M>& module_holder) { in push_back()
236 void insert(size_t index, const ModuleHolder<M>& module_holder) { in insert()
H A Dany.h126 explicit AnyModule(const ModuleHolder<ModuleType>& module_holder);
243 AnyModule::AnyModule(const ModuleHolder<ModuleType>& module_holder) in AnyModule()
H A Dnamed_any.h66 NamedAnyModule(std::string name, const ModuleHolder<M>& module_holder) in NamedAnyModule()
/aosp_15_r20/external/pytorch/test/cpp/api/
H A Dmodulelist.cpp55 struct M : torch::nn::ModuleHolder<MImpl> { in TEST_F()
56 using torch::nn::ModuleHolder<MImpl>::ModuleHolder; in TEST_F()
57 using torch::nn::ModuleHolder<MImpl>::get; in TEST_F()
H A Dsupport.h25 template <typename ModuleHolder>
26 ModuleHolder add(
27 ModuleHolder module_holder,
H A Dany.cpp312 struct M : torch::nn::ModuleHolder<MImpl> { in TEST_F()
313 using torch::nn::ModuleHolder<MImpl>::ModuleHolder; in TEST_F()
314 using torch::nn::ModuleHolder<MImpl>::get; in TEST_F()
H A Dsequential.cpp80 struct M : torch::nn::ModuleHolder<MImpl> { in TEST_F()
81 using torch::nn::ModuleHolder<MImpl>::ModuleHolder; in TEST_F()
82 using torch::nn::ModuleHolder<MImpl>::get; in TEST_F()
H A Drnn.cpp405 torch::nn::ModuleHolder<Impl>& target, in copyParameters()
407 const torch::nn::ModuleHolder<Impl>& source, in copyParameters()
/aosp_15_r20/external/pytorch/torch/csrc/api/include/torch/nn/parallel/
H A Ddata_parallel.h168 std::vector<ModuleHolder<ModuleType>> replicate( in replicate()
169 const ModuleHolder<ModuleType>& module, in replicate()
172 return std::vector<ModuleHolder<ModuleType>>(ptrs.begin(), ptrs.end()); in replicate()