ONE - On-device Neural Engine
Loading...
Searching...
No Matches
ann::OperationInventory Class Reference

#include <OperationInventory.h>

Public Member Functions

void create (Operation::Code code, std::initializer_list< OperandID > inputs, std::initializer_list< OperandID > outputs)
 
uint32_t count (void) const
 
const Operationat (uint32_t n) const
 

Detailed Description

Definition at line 30 of file OperationInventory.h.

Member Function Documentation

◆ at()

const Operation * ann::OperationInventory::at ( uint32_t  n) const
inline

Definition at line 40 of file OperationInventory.h.

40{ return _operations.at(n).get(); }

◆ count()

uint32_t ann::OperationInventory::count ( void  ) const
inline

Definition at line 37 of file OperationInventory.h.

37{ return _operations.size(); }

◆ create()

void ann::OperationInventory::create ( Operation::Code  code,
std::initializer_list< OperandID inputs,
std::initializer_list< OperandID outputs 
)

Definition at line 26 of file OperationInventory.cpp.

28{
29 _operations.emplace_back(make_unique<Operation>(code, inputs, outputs));
30}

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