TVM笔记-pass

1. 强拆Relay ir Pass

fold_const = relay.transform.FoldConstant() # 返回类型pass
mod = fold_const(mod) # 执行pass

2. 函数调用关系图

TVM笔记-pass_第1张图片

3. IPO

  1. input: IRModule
  2. process: pass优化
  3. output: IRModule

4. pass data structure

对于通用数据结构的定义均在目录tvm/ir中,执行pass 是一个module到module的映射
pass = PassInfo + passContext + PassConstructs

5、pass分类

high-level pass:
header file: include/tvm/relay/transforms.h
src files: src/relay/pass
python: python/tvm/relay/transform.py
low-level pass:
he

你可能感兴趣的:(TVM)