Skip to content

Commit

Permalink
add AST dump
Browse files Browse the repository at this point in the history
  • Loading branch information
TT-billteng committed Jan 8, 2025
1 parent 17e52ef commit 6c2258b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/python/simple_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def _wrapper(*args, **kwargs):
arg_dtypes = [to_data_type(arg.dtype) for arg in args]
m = ast.parse(inspect.getsource(f))
b = TTKernelBuilder(f.__name__, arg_shapes, arg_dtypes)
# print(ast.dump(m, indent=4))
b.visit(m)
print(b.module)
# return f(*args, **kwargs)
Expand Down

0 comments on commit 6c2258b

Please sign in to comment.