tvm
Classes | Namespaces | Macros
runtime.h File Reference

Object representation of Runtime configuration and registry. More...

#include <dmlc/registry.h>
#include <tvm/ir/attrs.h>
#include <tvm/ir/expr.h>
#include <tvm/ir/type.h>
#include <tvm/ir/type_relation.h>
#include <tvm/node/attr_registry_map.h>
#include <tvm/runtime/registry.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
Include dependency graph for runtime.h:

Go to the source code of this file.

Classes

class  tvm::relay::RuntimeNode
 Runtime information. More...
 
class  tvm::relay::Runtime
 Managed reference class to RuntimeNode. More...
 
class  tvm::relay::RuntimeRegEntry
 Helper structure to register Runtimes. More...
 

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::relay
 Relay: a high level functional IR for TVM.
 

Macros

#define TVM_RUNTIME_REGISTER_VAR_DEF    static DMLC_ATTRIBUTE_UNUSED ::tvm::relay::RuntimeRegEntry& __make_##Runtime
 
#define TVM_REGISTER_RUNTIME(RuntimeName)
 Register a new Runtime, or set attribute of the corresponding Runtime. More...
 

Detailed Description

Object representation of Runtime configuration and registry.

Macro Definition Documentation

◆ TVM_REGISTER_RUNTIME

#define TVM_REGISTER_RUNTIME (   RuntimeName)
Value:
static RuntimeRegEntry & RegisterOrGet(const String &name)
Register or get a new entry.
#define TVM_STR_CONCAT(__x, __y)
Definition: object.h:715
#define TVM_RUNTIME_REGISTER_VAR_DEF
Definition: runtime.h:253

Register a new Runtime, or set attribute of the corresponding Runtime.

Parameters
RuntimeNameThe name of registry
.add_attr_option<String>("my_option");
.add_attr_option<String>("my_option_default", String("default"));
#define TVM_REGISTER_RUNTIME(RuntimeName)
Register a new Runtime, or set attribute of the corresponding Runtime.
Definition: runtime.h:270

◆ TVM_RUNTIME_REGISTER_VAR_DEF

#define TVM_RUNTIME_REGISTER_VAR_DEF    static DMLC_ATTRIBUTE_UNUSED ::tvm::relay::RuntimeRegEntry& __make_##Runtime