Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lang] Add support for keyword arguments #4794

Merged
merged 9 commits into from
Apr 21, 2022
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
pre-commit-ci[bot] committed Apr 15, 2022
commit a20c48c33e24b4b70cb1031f255bba5ac7477ba1
4 changes: 3 additions & 1 deletion python/taichi/lang/kernel_arguments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import inspect

import taichi.lang
from taichi._lib import core as _ti_core
from taichi.lang import impl, ops
@@ -7,7 +9,7 @@
from taichi.lang.matrix import Matrix, MatrixType
from taichi.lang.util import cook_dtype
from taichi.types.primitive_types import u64
import inspect


class KernelArgument:
def __init__(self, _annotation, _name, _default=inspect.Parameter.empty):