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

GraphInput Pool. More...

#include <Graph.h>

Collaboration diagram for loco::Graph::InputContext:

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

GraphInput Pool.

Definition at line 191 of file Graph.h.

Member Function Documentation

◆ create()

GraphInput * loco::Graph::InputContext::create ( void  )

Definition at line 52 of file Graph.cpp.

52{ return take(std::make_unique<GraphInput>(size())); }
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 loco::ObjectPool< GraphInput >::size(), and loco::ObjectPool< GraphInput >::take().

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


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