ONE - On-device Neural Engine
Loading...
Searching...
No Matches
enco::GlobalData Struct Reference

#include <GlobalDataGeneration.h>

Static Public Member Functions

static GlobalOffset data_offset (const ann::Operand *)
 
static GlobalOffset data_offset (const coco::Bag *)
 Return the weight offset of a given bag.
 
static GlobalOffset name_offset (const coco::Input *)
 
static GlobalOffset dims_offset (const coco::Input *)
 
static GlobalOffset name_offset (const coco::Output *)
 
static GlobalOffset dims_offset (const coco::Output *)
 

Detailed Description

Definition at line 29 of file GlobalDataGeneration.h.

Member Function Documentation

◆ data_offset() [1/2]

GlobalOffset enco::GlobalData::data_offset ( const ann::Operand o)
static

Definition at line 95 of file GlobalDataGeneration.cpp.

95{ return data_offset_ctx.at(o); }

Referenced by enco::CppCode::dump().

◆ data_offset() [2/2]

GlobalOffset enco::GlobalData::data_offset ( const coco::Bag bag)
static

Return the weight offset of a given bag.

Note
The behavior of "data_offset" is undefined if a bag has no weight.

Definition at line 97 of file GlobalDataGeneration.cpp.

98{
99 assert(bag_data_offset_ctx.find(bag) != bag_data_offset_ctx.end());
100 return bag_data_offset_ctx.at(bag);
101}

◆ dims_offset() [1/2]

GlobalOffset enco::GlobalData::dims_offset ( const coco::Input in)
static

Definition at line 104 of file GlobalDataGeneration.cpp.

104{ return dims_offset_ctx.at(in); }

Referenced by enco::CppCode::dump().

◆ dims_offset() [2/2]

GlobalOffset enco::GlobalData::dims_offset ( const coco::Output out)
static

Definition at line 107 of file GlobalDataGeneration.cpp.

107{ return dims_offset_ctx.at(out); }

◆ name_offset() [1/2]

GlobalOffset enco::GlobalData::name_offset ( const coco::Input in)
static

Definition at line 103 of file GlobalDataGeneration.cpp.

103{ return name_offset_ctx.at(in); }

Referenced by enco::CppCode::dump().

◆ name_offset() [2/2]

GlobalOffset enco::GlobalData::name_offset ( const coco::Output out)
static

Definition at line 106 of file GlobalDataGeneration.cpp.

106{ return name_offset_ctx.at(out); }

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