Skip to content

Commit

Permalink
[Error] Remove the mentioning of ti.pyfunc in the error message (#4429)
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-hitonami authored Mar 2, 2022
1 parent 01cfd83 commit f1cf7c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/taichi/lang/kernel_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ def __call__(self, *args):
if not impl.inside_kernel():
if not self.pyfunc:
raise TaichiSyntaxError(
"Taichi functions cannot be called from Python-scope."
" Use @ti.pyfunc if you wish to call Taichi functions "
"from both Python-scope and Taichi-scope.")
"Taichi functions cannot be called from Python-scope.")
return self.func(*args)

if impl.get_runtime().experimental_real_function:
Expand Down

0 comments on commit f1cf7c0

Please sign in to comment.