ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::OutputManager Class Referencefinal

#include <OutputManager.h>

Collaboration diagram for coco::OutputManager:

Public Member Functions

 OutputManager (Module *m=nullptr)
 
Outputcreate (const nncc::core::ADT::tensor::Shape &)
 
- Public Member Functions inherited from coco::PtrManager< Output >
uint32_t size (void) const
 Return the number of managed objects.
 
Outputat (uint32_t n) const
 
- Public Member Functions inherited from coco::EntityBuilder
virtual ~EntityBuilder ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from coco::PtrManager< Output >
U * take (std::unique_ptr< U > &&o)
 
std::unique_ptr< Outputrelease (Output *ptr)
 
- Protected Member Functions inherited from coco::EntityBuilder
Modulemodule (void) const
 
void module (Module *m)
 
void modulize (Entity *entity) const
 

Detailed Description

Definition at line 28 of file OutputManager.h.

Constructor & Destructor Documentation

◆ OutputManager()

coco::OutputManager::OutputManager ( Module m = nullptr)
inline

Definition at line 31 of file OutputManager.h.

31{ module(m); }
Module * module(void) const

References m, and coco::EntityBuilder::module().

Member Function Documentation

◆ create()

Output * coco::OutputManager::create ( const nncc::core::ADT::tensor::Shape shape)

Definition at line 24 of file OutputManager.cpp.

25{
26 auto output = std::make_unique<Output>(shape);
27 modulize(output.get());
28 return take(std::move(output));
29}
void modulize(Entity *entity) const
U * take(std::unique_ptr< U > &&o)
Definition PtrManager.h:38

References coco::EntityBuilder::modulize(), and coco::PtrManager< Output >::take().


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