ONE - On-device Neural Engine
|
Core coco entity for constant weights. More...
#include <Data.h>
Public Member Functions | |
virtual | ~Data ()=default |
virtual bool | allocated (const coco::Bag *) const =0 |
Return true if a given bag has an allocated weight data. | |
virtual void | release (const coco::Bag *)=0 |
Release a memory chunk allocated for weight data of a given bag. | |
virtual PlainWeightContext< float > * | f32 (void)=0 |
virtual const PlainWeightContext< float > * | f32 (void) const =0 |
Static Public Member Functions | |
static std::unique_ptr< Data > | create (void) |
|
virtualdefault |
|
pure virtual |
Return true if a given bag has an allocated weight data.
|
static |
Definition at line 202 of file Data.cpp.
Referenced by Frontend::load().
|
pure virtual |
|
pure virtual |
Referenced by tflimport::DepthwiseConv2DGraphBuilder::build().
|
pure virtual |
Release a memory chunk allocated for weight data of a given bag.
WARN Do NOT invoke release for a bag "b" for which allocated(b) does NOT hold