ONE - On-device Neural Engine
|
Base interface on all typed NN values. More...
#include <Object.h>
Data Structures | |
struct | Consumer |
struct | Producer |
Public Types | |
enum class | Kind { Unknown , Feature , Kernel } |
using | ConsumerSet = std::set< Consumer * > |
Public Member Functions | |
Object () | |
virtual | ~Object ()=default |
virtual Kind | kind (void) const |
coco::Bag * | bag (void) const |
void | bag (coco::Bag *bag) |
virtual FeatureObject * | asFeature (void) |
virtual const FeatureObject * | asFeature (void) const |
virtual KernelObject * | asKernel (void) |
virtual const KernelObject * | asKernel (void) const |
Def * | def (void) const |
const UseSet * | uses (void) const |
Public Member Functions inherited from coco::Entity | |
virtual | ~Entity ()=default |
Module * | module (void) const |
Friends | |
class | Def |
class | Use |
|
strong |
coco::Object::Object | ( | ) |
Definition at line 27 of file Object.cpp.
References coco::Dep::object().
|
virtualdefault |
|
inlinevirtual |
Reimplemented in coco::FeatureObject.
Definition at line 78 of file Object.h.
Referenced by coco::cast(), dump(), coco::isa< FeatureObject >(), and coco::safe_cast().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in coco::KernelObject.
Definition at line 81 of file Object.h.
Referenced by coco::cast(), dump(), coco::isa< KernelObject >(), and coco::safe_cast().
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 74 of file Object.h.
References coco::Dep::bag().
Referenced by bag(), caffeimport::ConcatBuilder::build(), tflimport::AvgPool2DGraphBuilder::build(), tflimport::ConcatenationGraphBuilder::build(), tflimport::MaxPool2DGraphBuilder::build(), tflimport::ReLUGraphBuilder::build(), tflimport::ReLU6GraphBuilder::build(), tflimport::SubGraphBuilder::build(), tflimport::Conv2DGraphBuilder::build(), tflimport::DepthwiseConv2DGraphBuilder::build(), and tflimport::build_activation().
Def * coco::Object::def | ( | void | ) | const |
Definition at line 33 of file Object.cpp.
Referenced by coco::ObjectManager::destroy(), and coco::Def::value().
|
inlinevirtual |
Reimplemented in coco::FeatureObject, and coco::KernelObject.
Definition at line 71 of file Object.h.
References Unknown.
const UseSet * coco::Object::uses | ( | void | ) | const |
Definition at line 52 of file Object.cpp.
Referenced by coco::ObjectManager::destroy(), and enco::subst().