tvm
Namespaces | Typedefs | Functions
parser.h File Reference

A parser for TVM IR. More...

#include <tvm/ir/module.h>
#include <tvm/ir/transform.h>
#include <tvm/runtime/packed_func.h>
#include <tvm/runtime/registry.h>
#include <fstream>
#include <string>
Include dependency graph for parser.h:

Go to the source code of this file.

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::parser
 

Typedefs

using tvm::parser::MetaTable = Map< String, Array< ObjectRef > >
 

Functions

IRModule tvm::parser::ParseModule (const std::string &file_name, const std::string &file_content, const Optional< IRModule > &init_module=Optional< IRModule >(), const MetaTable &init_meta_table=MetaTable())
 
transform::Pass tvm::parser::AnnotateSpans ()
 This pass pretty-prints mod then parses it back so as to establish spans and sources for all Relay sub-expressions. This improves error and debugging diagnostics downstream for modules constructed programaticaly rather than textually. More...
 

Detailed Description

A parser for TVM IR.