Skip to content

Commit

Permalink
Fix rewrite bug (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark14wu authored Aug 30, 2024
1 parent 589b115 commit 434fa20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions triton_viz/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ def wrapper(input, axis=None, keep_dims=False):
def patch():
old_grid_executor_call = GridExecutor.__call__
old_jit_function_call = JITFunction.__call__
# XXX(Keren): Temporarily disable rewriting of AST
old_rewrite_ast = InterpretedFunction._rewrite_ast
old_create_make_range = interpreter_builder.create_make_range
old_create_masked_load = interpreter_builder.create_masked_load
old_create_expand_dims = interpreter_builder.create_expand_dims
Expand Down Expand Up @@ -373,7 +371,6 @@ def patch():
finally:
GridExecutor.__call__ = old_grid_executor_call
JITFunction.__call__ = old_jit_function_call
InterpretedFunction._rewrite_ast = old_rewrite_ast
interpreter_builder.create_make_range = old_create_make_range
interpreter_builder.create_masked_load = old_create_masked_load
interpreter_builder.create_expand_dims = old_create_expand_dims
Expand Down

0 comments on commit 434fa20

Please sign in to comment.