tvm
Classes | Typedefs | Functions
tvm::parser Namespace Reference

Classes

class  Source
 
class  SourceMap
 
class  SourceMapNode
 Stores locations in frontend source that generated a node. More...
 
class  SourceNode
 

Typedefs

using MetaTable = Map< String, Array< ObjectRef > >
 

Functions

IRModule 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 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...
 

Typedef Documentation

◆ MetaTable

Function Documentation

◆ AnnotateSpans()

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.

◆ ParseModule()

IRModule tvm::parser::ParseModule ( const std::string &  file_name,
const std::string &  file_content,
const Optional< IRModule > &  init_module = OptionalIRModule >(),
const MetaTable init_meta_table = MetaTable() 
)