tvm
Loading...
Searching...
No Matches
Classes | Namespaces
config_schema.h File Reference

Minimal schema for dynamic config canonicalization and validation. More...

#include <tvm/ffi/container/map.h>
#include <tvm/ffi/function.h>
#include <tvm/ffi/reflection/registry.h>
#include <sstream>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
Include dependency graph for config_schema.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::ConfigSchema
 Dynamic config schema for map-like options. More...
 
struct  tvm::ConfigSchema::OptionEntry
 Schema entry for one declared option. More...
 
struct  tvm::ConfigSchema::AttrValidator
 Trait to set a custom validator for a config option. More...
 

Namespaces

namespace  tvm
 An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
 

Detailed Description

Minimal schema for dynamic config canonicalization and validation.

This utility is intended for dynamic map-like configs (e.g. Target options), where we still want type checking, optional defaulting, and canonicalization.