-
Notifications
You must be signed in to change notification settings - Fork 362
/
Copy pathmain.cpp
50 lines (35 loc) · 1.03 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "core/conversion/converters/converters.h"
#include "core/conversion/evaluators/evaluators.h"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
int main(int argc, const char* argv[]) {
std::vector<std::string> converters = torch_tensorrt::core::conversion::converters::get_converter_list();
std::vector<std::string> evaluators = torch_tensorrt::core::conversion::evaluators::getEvaluatorList();
std::stringstream ss;
ss << R"TITLE(
.. _supported_ops:
=================================
Operators Supported
=================================
)TITLE";
ss << R"SEC(
Operators Currently Supported Through Converters
-------------------------------------------------
)SEC";
for (auto c : converters) {
ss << "- " << c << std::endl;
}
ss << R"SEC(
Operators Currently Supported Through Evaluators
-------------------------------------------------
)SEC";
for (auto e : evaluators) {
ss << "- " << e << std::endl;
}
std::ofstream ofs;
ofs.open(argv[1]);
ofs << ss.rdbuf();
return 0;
}