Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dream189free committed May 6, 2023
1 parent e33a788 commit 44074b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def fill_ndarray_matrix(ndarray: ndarray_type.ndarray(), val: template()):
def tensor_to_ext_arr(tensor: template(), arr: ndarray_type.ndarray()):
offset = static(tensor.snode.ptr.offset)
shape = static(tensor.shape)
# default value of offset is [], substitute it with [0] * len
# default value of offset is [], replace it with [0] * len
offset_new = static([0] * len(shape) if len(offset) == 0 else offset)

for I in grouped(tensor):
Expand Down

0 comments on commit 44074b9

Please sign in to comment.