tvm
|
A representation of a Relay function in the VM. More...
#include <vm.h>
Public Member Functions | |
VMFunction (std::string name, std::vector< std::string > params, std::vector< Instruction > instructions, Index register_file_size, std::vector< Index > param_device_indexes) | |
VMFunction ()=default | |
Public Attributes | |
std::string | name |
The function's name. More... | |
std::vector< std::string > | params |
The function parameter names. More... | |
std::vector< Instruction > | instructions |
The instructions representing the function. More... | |
Index | register_file_size = 0 |
The size of the frame for this function. More... | |
std::vector< Index > | param_device_indexes |
The indexes for the device holding each function parameter. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const VMFunction &) |
A representation of a Relay function in the VM.
Contains metadata about the compiled function, as well as the compiled VM instructions.
|
inline |
|
default |
|
friend |
std::vector<Instruction> tvm::runtime::vm::VMFunction::instructions |
The instructions representing the function.
std::string tvm::runtime::vm::VMFunction::name |
The function's name.
std::vector<Index> tvm::runtime::vm::VMFunction::param_device_indexes |
The indexes for the device holding each function parameter.
std::vector<std::string> tvm::runtime::vm::VMFunction::params |
The function parameter names.
Index tvm::runtime::vm::VMFunction::register_file_size = 0 |
The size of the frame for this function.