6ae439c8c58dd0118d2f2c5d1c4bcb650df47104,python/tvm/te/hybrid/parser.py,HybridParser,visit_Name,#HybridParser#Any#,257
Before Change
return entry if isinstance(node.ctx, ast.Load) else None
if ty is Symbol.BufferVar:
if isinstance(node.ctx, ast.Load):
return tvm.tir.Call(entry.dtype, entry.name, [tvm.runtime.const(0, "int32")], \
_expr.Call.Halide, entry.op, entry.value_index)
return entry, [tvm.runtime.const(0, "int32")]
// Do I need any assertion here?
return entry
After Change
return entry if isinstance(node.ctx, ast.Load) else None
if ty is Symbol.BufferVar:
if isinstance(node.ctx, ast.Load):
return tvm.tir.ProducerLoad(entry, [tvm.runtime.const(0, "int32")])
return entry, [tvm.runtime.const(0, "int32")]
// Do I need any assertion here?
return entry
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances Project Name: apache/incubator-tvm
Commit Name: 6ae439c8c58dd0118d2f2c5d1c4bcb650df47104
Time: 2020-06-07
Author: tqchen@users.noreply.github.com
File Name: python/tvm/te/hybrid/parser.py
Class Name: HybridParser
Method Name: visit_Name
Project Name: apache/incubator-tvm
Commit Name: 6ae439c8c58dd0118d2f2c5d1c4bcb650df47104
Time: 2020-06-07
Author: tqchen@users.noreply.github.com
File Name: python/tvm/te/hybrid/parser.py
Class Name: HybridParser
Method Name: visit_Subscript
Project Name: apache/incubator-tvm
Commit Name: 6ae439c8c58dd0118d2f2c5d1c4bcb650df47104
Time: 2020-06-07
Author: tqchen@users.noreply.github.com
File Name: python/tvm/te/hybrid/parser.py
Class Name: HybridParser
Method Name: visit_Name
Project Name: apache/incubator-tvm
Commit Name: 6ae439c8c58dd0118d2f2c5d1c4bcb650df47104
Time: 2020-06-07
Author: tqchen@users.noreply.github.com
File Name: python/tvm/te/hybrid/parser.py
Class Name: HybridParser
Method Name: visit_AugAssign