Skip to content

Commit

Permalink
[refactor] Exchange compiled_grad_functions and compiled_functions in…
Browse files Browse the repository at this point in the history
… kernel_impl.py (taichi-dev#2930)
  • Loading branch information
strongoier authored Sep 14, 2021
1 parent 96397e7 commit fc22fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/taichi/lang/kernel_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ def __init__(self, func, is_grad, classkernel=False):
def reset(self):
self.runtime = impl.get_runtime()
if self.is_grad:
self.compiled_functions = self.runtime.compiled_functions
else:
self.compiled_functions = self.runtime.compiled_grad_functions
else:
self.compiled_functions = self.runtime.compiled_functions

def extract_arguments(self):
sig = inspect.signature(self.func)
Expand Down

0 comments on commit fc22fd4

Please sign in to comment.