1 // ATTENTION: The code in this file is highly EXPERIMENTAL.
2 // Adventurous users should note that the APIs will probably change.
3 
4 #include "onnx/optimizer/pass_registry.h"
5 
6 namespace ONNX_NAMESPACE {
7 namespace optimization {
8 
GetAvailablePasses()9 const std::vector<std::string> GlobalPassRegistry::GetAvailablePasses() {
10   std::vector<std::string> names;
11   for (const auto& pass : this->passes) {
12     names.push_back(pass.first);
13   }
14   return names;
15 }
16 
17 } // namespace optimization
18 } // namespace ONNX_NAMESPACE
19