ONE - On-device Neural Engine
|
GraphInput Pool. More...
#include <Graph.h>
Public Member Functions | |
GraphInput * | create (void) |
Public Member Functions inherited from loco::ObjectPool< GraphInput > | |
virtual | ~ObjectPool ()=default |
uint32_t | size (void) const |
Return the number of objects. | |
GraphInput * | at (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. | |
GraphInput * loco::Graph::InputContext::create | ( | void | ) |
Definition at line 52 of file Graph.cpp.
References loco::ObjectPool< GraphInput >::size(), and loco::ObjectPool< GraphInput >::take().
Referenced by luci::ConstantFoldingTestGraph::ConstantFoldingTestGraph(), and InputLayer::operator()().