TVM  0.9.2
AbstractNode.h File Reference
#include <tvm/api.h>
#include <tvm/graph/internal/Inputs.h>
#include <cassert>
#include <functional>
#include <vector>
Include dependency graph for AbstractNode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::graph::abstract::Node< T >
 
class  tvm::graph::internal::AbstractNode
 
struct  tvm::graph::internal::AbstractNode::Update
 

Namespaces

 tvm
 
 tvm::graph
 
 tvm::graph::abstract
 
 tvm::graph::internal
 

Macros

#define SET_UPDATES(SelfT, ...)   PP_ID(EXTEND_ENUM(Update, SelfT, __VA_ARGS__))
 
#define DISABLE_UPDATES(...)   PP_ID(DISABLE_SIGNALS(Update, __VA_ARGS__))
 
#define CLEAR_DISABLED_UPDATES()   PP_ID(CLEAR_DISABLED_SIGNALS(Update))
 

Functions

template<typename T , typename EnumT >
constexpr bool tvm::graph::internal::is_valid_update (EnumT v)
 
template<typename T , typename EnumT , typename... Args>
constexpr bool tvm::graph::internal::is_valid_update (EnumT v, Args... args)
 

Macro Definition Documentation

◆ CLEAR_DISABLED_UPDATES

#define CLEAR_DISABLED_UPDATES ( )    PP_ID(CLEAR_DISABLED_SIGNALS(Update))

Mark all updates as enabled

◆ DISABLE_UPDATES

#define DISABLE_UPDATES (   ...)    PP_ID(DISABLE_SIGNALS(Update, __VA_ARGS__))

Mark some update signals as disabled for that class

◆ SET_UPDATES

#define SET_UPDATES (   SelfT,
  ... 
)    PP_ID(EXTEND_ENUM(Update, SelfT, __VA_ARGS__))

Add new update signals for a given entity SelfT.

Read the meta-information available at construction for SelfT to start the enum value at the correct value.

A Node object that does not need new update signals does not need to call this macro.