tvm
|
Runtime Map container types. More...
#include <algorithm>
#include <unordered_map>
#include <utility>
#include "./base.h"
#include "./optional.h"
Go to the source code of this file.
Classes | |
class | tvm::runtime::MapNode |
Shared content of all specializations of hash map. More... | |
class | tvm::runtime::MapNode::iterator |
class | tvm::runtime::SmallMapNode |
A specialization of small-sized hash map. More... | |
class | tvm::runtime::DenseMapNode |
A specialization of hash map that implements the idea of array-based hash map. Another reference implementation can be found [1]. More... | |
class | tvm::runtime::Map< K, V, typename, typename > |
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics, which means map is mutable but copy will happen when array is referenced in more than two places. More... | |
class | tvm::runtime::Map< K, V, typename, typename >::iterator |
Iterator of the hash map. More... | |
Namespaces | |
tvm | |
runtime implementation for LibTorch/TorchScript. | |
tvm::runtime | |
Macros | |
#define | USE_FALLBACK_STL_MAP 0 |
#define | TVM_MAP_FAIL_IF_CHANGED() |
#define | TVM_DISPATCH_MAP(base, var, body) |
#define | TVM_DISPATCH_MAP_CONST(base, var, body) |
Functions | |
template<> | |
ObjectPtr< ArrayNode > | tvm::runtime::make_object () |
template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type> | |
Map< K, V > | tvm::runtime::Merge (Map< K, V > lhs, const Map< K, V > &rhs) |
Merge two Maps. More... | |
Runtime Map container types.
#define TVM_DISPATCH_MAP | ( | base, | |
var, | |||
body | |||
) |
#define TVM_DISPATCH_MAP_CONST | ( | base, | |
var, | |||
body | |||
) |
#define TVM_MAP_FAIL_IF_CHANGED | ( | ) |
#define USE_FALLBACK_STL_MAP 0 |