ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::trix_loader::TrixLoader Class Reference
Collaboration diagram for onert::trix_loader::TrixLoader:

Public Member Functions

 TrixLoader ()=default
 Construct a new Loader object.
 
std::unique_ptr< ir::ModelloadFromFile (const std::string &file_path) override
 Load a model from file.
 
- Public Member Functions inherited from onert::loader::ILoader
virtual ~ILoader ()=default
 

Detailed Description

Definition at line 77 of file TrixLoader.cc.

Constructor & Destructor Documentation

◆ TrixLoader()

onert::trix_loader::TrixLoader::TrixLoader ( )
default

Construct a new Loader object.

Member Function Documentation

◆ loadFromFile()

std::unique_ptr< ir::Model > onert::trix_loader::TrixLoader::loadFromFile ( const std::string &  file_path)
overridevirtual

Load a model from file.

Parameters
file_path

Implements onert::loader::ILoader.

Definition at line 245 of file TrixLoader.cc.

246{
247 auto model = std::make_unique<ir::Model>();
248 // model path will be used to set Bulk param
249 _model_path = file_path;
250 // metadata is initialized from model path since it is loadFromFile
251 _meta.init(_model_path.c_str());
252 loadModel(model);
253 return model;
254}
void init(const char *path)
Definition TrixLoader.cc:63

References onert::trix_loader::TrixMetaReader::init().


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