tvm
Public Member Functions | Public Attributes | Friends | List of all members
tvm::runtime::vm::VMFunction Struct Reference

A representation of a Relay function in the VM. More...

#include <vm.h>

Collaboration diagram for tvm::runtime::vm::VMFunction:

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< Instructioninstructions
 The instructions representing the function. More...
 
Index register_file_size = 0
 The size of the frame for this function. More...
 
std::vector< Indexparam_device_indexes
 The indexes for the device holding each function parameter. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const VMFunction &)
 

Detailed Description

A representation of a Relay function in the VM.

Contains metadata about the compiled function, as well as the compiled VM instructions.

Constructor & Destructor Documentation

◆ VMFunction() [1/2]

tvm::runtime::vm::VMFunction::VMFunction ( std::string  name,
std::vector< std::string >  params,
std::vector< Instruction instructions,
Index  register_file_size,
std::vector< Index param_device_indexes 
)
inline

◆ VMFunction() [2/2]

tvm::runtime::vm::VMFunction::VMFunction ( )
default

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const VMFunction  
)
friend

Member Data Documentation

◆ instructions

std::vector<Instruction> tvm::runtime::vm::VMFunction::instructions

The instructions representing the function.

◆ name

std::string tvm::runtime::vm::VMFunction::name

The function's name.

◆ param_device_indexes

std::vector<Index> tvm::runtime::vm::VMFunction::param_device_indexes

The indexes for the device holding each function parameter.

◆ params

std::vector<std::string> tvm::runtime::vm::VMFunction::params

The function parameter names.

◆ register_file_size

Index tvm::runtime::vm::VMFunction::register_file_size = 0

The size of the frame for this function.


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