ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::Graph::OutputContext Struct Referencefinal

GraphOutput Pool. More...

#include <Graph.h>

Collaboration diagram for loco::Graph::OutputContext:

Public Member Functions

GraphOutputcreate (void)
 
- Public Member Functions inherited from loco::ObjectPool< GraphOutput >
virtual ~ObjectPool ()=default
 
uint32_t size (void) const
 Return the number of objects.
 
GraphOutputat (uint32_t n) const
 Access N-th object.
 

Additional Inherited Members

- Protected Member Functions inherited from loco::ObjectPool< GraphOutput >
U * take (std::unique_ptr< U > &&o)
 Take the ownership of a given object and returns its raw pointer.
 
bool erase (GraphOutput *ptr)
 Erase an object from the pool.
 

Detailed Description

GraphOutput Pool.

Definition at line 199 of file Graph.h.

Member Function Documentation

◆ create()

GraphOutput * loco::Graph::OutputContext::create ( void  )

Definition at line 54 of file Graph.cpp.

55{
56 return take(std::make_unique<GraphOutput>(size()));
57}
U * take(std::unique_ptr< U > &&o)
Take the ownership of a given object and returns its raw pointer.
Definition ObjectPool.h:45
uint32_t size(void) const
Return the number of objects.
Definition ObjectPool.h:38

References size.

Referenced by luci::ConstantFoldingTestGraph::ConstantFoldingTestGraph(), and OutputLayer::operator()().


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