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

#include <CircleExporterImpl.h>

Public Member Functions

 CircleExporterImpl ()=delete
 
 ~CircleExporterImpl ()=default
 
 CircleExporterImpl (Module *module)
 
const char * getBufferPointer () const
 
size_t getBufferSize () const
 

Detailed Description

internal implementation of interface exporter class

Definition at line 35 of file CircleExporterImpl.h.

Constructor & Destructor Documentation

◆ CircleExporterImpl() [1/2]

luci::CircleExporterImpl::CircleExporterImpl ( )
delete

◆ ~CircleExporterImpl()

luci::CircleExporterImpl::~CircleExporterImpl ( )
default

◆ CircleExporterImpl() [2/2]

luci::CircleExporterImpl::CircleExporterImpl ( Module module)
explicit

Definition at line 136 of file CircleExporterImpl.cpp.

136{ exportModule(module); }

Member Function Documentation

◆ getBufferPointer()

const char * luci::CircleExporterImpl::getBufferPointer ( ) const
Returns
pointer to buffer with serialized graph

Definition at line 311 of file CircleExporterImpl.cpp.

312{
313 if (_ext_buffer)
314 return reinterpret_cast<const char *>(_fb_data_with_ext.data());
315 return reinterpret_cast<const char *>(_builder.GetBufferPointer());
316}
uint8_t * GetBufferPointer() const
Get the serialized buffer (after you call Finish()).

References flatbuffers::FlatBufferBuilder::GetBufferPointer().

Referenced by luci::CircleExporter::invoke().

◆ getBufferSize()

size_t luci::CircleExporterImpl::getBufferSize ( ) const
Returns
size of buffer with serialized graph

Definition at line 318 of file CircleExporterImpl.cpp.

319{
320 if (_ext_buffer)
321 return _fb_data_with_ext.size();
322 return _builder.GetSize();
323}
uoffset_t GetSize() const
The current size of the serialized buffer, counting from the end.

References flatbuffers::FlatBufferBuilder::GetSize().

Referenced by luci::CircleExporter::invoke().


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