mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Fix
```
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:91:16: error: invalid application of 'sizeof' to an incomplete type 'torch::jit::AliasDb::WriteRegistry'
91 | static_assert(sizeof(_Tp)>0,
| ^~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:399:4: note: in instantiation of member function 'std::default_delete<torch::jit::AliasDb::WriteRegistry>::operator()' requested here
399 | get_deleter()(std::move(__ptr));
| ^
../torch/csrc/jit/ir/alias_analysis.cpp:200:10: note: in instantiation of member function 'std::unique_ptr<torch::jit::AliasDb::WriteRegistry>::~unique_ptr' requested here
200 | AliasDb::~AliasDb() = default;
| ^
../torch/csrc/jit/ir/alias_analysis.cpp:200:23: note: in defaulted destructor for 'torch::jit::AliasDb' first required here
200 | AliasDb::~AliasDb() = default;
| ^
../torch/csrc/jit/ir/alias_analysis.h:298:10: note: forward declaration of 'torch::jit::AliasDb::WriteRegistry'
298 | struct WriteRegistry;
| ^
1 error generated.
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/148758
Approved by: https://github.com/Skylion007
|
||
|---|---|---|
| .. | ||
| alias_analysis.cpp | ||
| alias_analysis.h | ||
| attributes.cpp | ||
| attributes.h | ||
| constants.cpp | ||
| constants.h | ||
| graph_node_list.h | ||
| graph_utils.cpp | ||
| graph_utils.h | ||
| ir_views.h | ||
| ir.cpp | ||
| ir.h | ||
| irparser.cpp | ||
| irparser.h | ||
| named_value.h | ||
| node_hashing.cpp | ||
| node_hashing.h | ||
| scope.cpp | ||
| scope.h | ||
| subgraph_matcher.cpp | ||
| subgraph_matcher.h | ||
| type_hashing.cpp | ||
| type_hashing.h | ||