#include <ONNXImporterImpl.h>
#include <mir2loco.h>
#include <exo/TFLExporter.h>
#include <iostream>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 52 of file Driver.cpp.
53{
54
55
56 if (argc != 4)
57 {
58 printHelp();
59 exit(1);
60 }
62 std::string onnx_path{
argv[2]};
63 std::string tflite_path{
argv[3]};
64
65 std::cout << "Import " << quote(onnx_path) << std::endl;
66 std::unique_ptr<mir::Graph> mir_graph;
67 if (mode == "-t")
69 else if (mode == "-b")
71 else
72 {
73 printHelp();
74 exit(1);
75 }
76 std::cout << "Import " << quote(onnx_path) << " - Done" << std::endl;
77
78 auto loco_graph = transform(mir_graph);
79
81
82 return 0;
83}
void dumpToFile(const char *path) const
write to a file
std::unique_ptr< mir::Graph > importModelFromTextFile(const std::string &filename)
std::unique_ptr< mir::Graph > importModelFromBinaryFile(const std::string &filename)
References exo::TFLExporter::dumpToFile(), mir_onnx::importModelFromBinaryFile(), and mir_onnx::importModelFromTextFile().