ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::Importer Class Referencefinal

#include <Importer.h>

Public Member Functions

 Importer ()
 
 Importer (const GraphBuilderSource *source)
 
std::unique_ptr< ModuleimportModule (const uint8_t *data, size_t size)
 

Detailed Description

Definition at line 33 of file Importer.h.

Constructor & Destructor Documentation

◆ Importer() [1/2]

luci::Importer::Importer ( )

Definition at line 264 of file Importer.cpp.

265{
266 // DO NOTHING
267}

◆ Importer() [2/2]

luci::Importer::Importer ( const GraphBuilderSource source)
inlineexplicit

Definition at line 39 of file Importer.h.

39 : _source{source}
40 {
41 // DO NOTHING
42 }

Member Function Documentation

◆ importModule()

std::unique_ptr< Module > luci::Importer::importModule ( const uint8_t *  data,
size_t  size 
)

Definition at line 374 of file Importer.cpp.

375{
376 if (data == nullptr || size == 0)
377 return nullptr;
378
379 _file_data = data;
380 _file_size = size;
381
382 const circle::Model *circle_model = circle::GetModel(_file_data);
383 if (circle_model == nullptr)
384 return nullptr;
385
386 return importModule(circle_model);
387}
const T * data(const std::vector< T, Alloc > &v)
int32_t size[5]
Definition Slice.cpp:35

References flatbuffers::data(), and size.


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