ONE - On-device Neural Engine
Loading...
Searching...
No Matches
moco::onnx::Frontend Class Reference

#include <Frontend.h>

Public Types

enum class  FileType { Text , Binary }
 

Public Member Functions

 Frontend ()
 
std::unique_ptr< loco::Graphload (const char *, FileType) const
 

Detailed Description

Definition at line 29 of file Frontend.h.

Member Enumeration Documentation

◆ FileType

enum class moco::onnx::Frontend::FileType
strong
Enumerator
Text 
Binary 

Definition at line 32 of file Frontend.h.

Constructor & Destructor Documentation

◆ Frontend()

Frontend::Frontend ( )

Definition at line 256 of file Frontend.cpp.

257{
258 // DO NOTHING
259}

Member Function Documentation

◆ load()

std::unique_ptr< loco::Graph > Frontend::load ( const char *  modelfile,
FileType  type 
) const

Definition at line 261 of file Frontend.cpp.

262{
263 ::onnx::ModelProto onnx_model_proto;
264
265 load_onnx(modelfile, type, onnx_model_proto);
266
267 auto graph = loco::make_graph();
268
269 convert_graph(onnx_model_proto, graph.get());
270
271 return std::move(graph);
272}
std::unique_ptr< Graph > make_graph(void)
Definition Graph.cpp:131

References loco::make_graph().


The documentation for this class was generated from the following files: