Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2022
1 parent d6a827c commit b30363e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/taichi/lang/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ def to_paddle(self, device=None):
import paddle # pylint: disable=C0415

# pylint: disable=E1101
arr = paddle.zeros(shape=self.shape,
dtype=to_paddle_type(self.dtype))
arr = paddle.zeros(shape=self.shape, dtype=to_paddle_type(self.dtype))
from taichi._kernels import tensor_to_ext_arr # pylint: disable=C0415
tensor_to_ext_arr(self, arr)
taichi.lang.runtime_ops.sync()
Expand Down

0 comments on commit b30363e

Please sign in to comment.