ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnc::sir::CallFunction Struct Reference

#include <SequencedIR.h>

Collaboration diagram for nnc::sir::CallFunction:

Public Member Functions

 CallFunction (mir::Operation *op, std::string func_name, std::vector< size_t > &&inputs, std::vector< size_t > &&outputs)
 
 CallFunction ()
 
- Public Member Functions inherited from nnc::sir::Action
 Action (Type t)
 
virtual ~Action ()=default
 

Data Fields

mir::OperationmirOp
 
std::string funcName
 
std::vector< size_t > inputs
 
std::vector< size_t > outputs
 
size_t paramStartOffset
 
- Data Fields inherited from nnc::sir::Action
Type type
 

Additional Inherited Members

- Public Types inherited from nnc::sir::Action
enum class  Type { createTmp , destroyTmp , callFunction , transposeTensor }
 

Detailed Description

Definition at line 119 of file SequencedIR.h.

Constructor & Destructor Documentation

◆ CallFunction() [1/2]

nnc::sir::CallFunction::CallFunction ( mir::Operation op,
std::string  func_name,
std::vector< size_t > &&  inputs,
std::vector< size_t > &&  outputs 
)
inline

Definition at line 122 of file SequencedIR.h.

124 : Action(Type::callFunction), mirOp(op), funcName(std::move(func_name)), inputs(inputs),
126 {
127 }
std::vector< size_t > inputs
std::vector< size_t > outputs
mir::Operation * mirOp

◆ CallFunction() [2/2]

nnc::sir::CallFunction::CallFunction ( )
inline

Definition at line 129 of file SequencedIR.h.

Field Documentation

◆ funcName

std::string nnc::sir::CallFunction::funcName

Definition at line 132 of file SequencedIR.h.

◆ inputs

std::vector<size_t> nnc::sir::CallFunction::inputs

◆ mirOp

mir::Operation* nnc::sir::CallFunction::mirOp

Definition at line 131 of file SequencedIR.h.

Referenced by nnc::Serializer::serialize().

◆ outputs

std::vector<size_t> nnc::sir::CallFunction::outputs

◆ paramStartOffset


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