Skip to content

Commit

Permalink
[aot] Fixed default list (#6403)
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG authored Oct 22, 2022
1 parent 07446dd commit f573176
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/taichi/aot/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,17 @@ class Module:
# Now the module file '/path/to/module' contains the Metal kernels
# for running ``foo`` and ``bar``.
"""
def __init__(self, arch, caps=[]):
def __init__(self, arch, caps=None):
"""Creates a new AOT module instance
Args:
arch: Target backend architecture. This must match the one specified
in :func:`~taichi.lang.init`.
caps (List[str]): Enabled device capabilities.
"""
if caps is None:
caps = []

self._arch = arch
self._kernels = []
self._fields = {}
Expand Down

0 comments on commit f573176

Please sign in to comment.