ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::CircleExporter Class Reference

#include <CircleExporter.h>

Data Structures

struct  Contract
 

Public Member Functions

 CircleExporter ()
 
bool invoke (Contract *) const
 

Detailed Description

Definition at line 29 of file CircleExporter.h.

Constructor & Destructor Documentation

◆ CircleExporter()

luci::CircleExporter::CircleExporter ( )
explicit

Definition at line 29 of file CircleExporter.cpp.

30{
31 // NOTHING TO DO
32}

Member Function Documentation

◆ invoke()

bool luci::CircleExporter::invoke ( Contract contract) const

Definition at line 34 of file CircleExporter.cpp.

35{
36 auto module = contract->module();
37 if (module != nullptr)
38 {
39 CircleExporterImpl impl(module);
40
41 const char *ptr = impl.getBufferPointer();
42 const size_t size = impl.getBufferSize();
43
44 // we just send one time
45 return contract->store(ptr, size);
46 }
47
48 // NOTE some unit tests calls with nullptr module, cannot add assert here
49 // TODO fix those unit tests and add assert(false)
50
51 return false;
52}
int32_t size[5]
Definition Slice.cpp:35

References luci::CircleExporterImpl::getBufferPointer(), luci::CircleExporterImpl::getBufferSize(), size, and luci::CircleExporter::Contract::store().

Referenced by minmax_embedder::Embedder::embed(), entry(), opselector::exportModule(), onert::odc::Quantizer::quantize(), and record_minmax::RecordMinMax::saveModel().


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