tvm
|
A more powerful visitor on ADT patterns that enables defining arbitrary function signatures with type-based dispatch on first argument. More...
#include <tvm/node/functor.h>
#include <tvm/relay/error.h>
#include <string>
#include <unordered_map>
#include <utility>
#include "./adt.h"
#include "./expr.h"
#include "./op.h"
Go to the source code of this file.
Classes | |
class | tvm::relay::PatternFunctor< R(const Pattern &n, Args...)> |
class | tvm::relay::PatternVisitor |
A simple visitor wrapper around PatternFunctor. More... | |
class | tvm::relay::PatternMutator |
A wrapper around ExprFunctor which functionally updates the AST. More... | |
Namespaces | |
tvm | |
runtime implementation for LibTorch/TorchScript. | |
tvm::relay | |
Relay: a high level functional IR for TVM. | |
Macros | |
#define | PATTERN_FUNCTOR_DEFAULT { return VisitPatternDefault_(op, std::forward<Args>(args)...); } |
#define | RELAY_PATTERN_FUNCTOR_DISPATCH(OP) |
A more powerful visitor on ADT patterns that enables defining arbitrary function signatures with type-based dispatch on first argument.
#define PATTERN_FUNCTOR_DEFAULT { return VisitPatternDefault_(op, std::forward<Args>(args)...); } |
#define RELAY_PATTERN_FUNCTOR_DISPATCH | ( | OP | ) |