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 Dec 13, 2022
1 parent 58394c0 commit 4eb01fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/taichi/lang/kernel_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from taichi.lang.any_array import AnyArray
from taichi.lang.enums import Layout
from taichi.lang.expr import Expr
from taichi.lang.matrix import Matrix, MatrixType, Vector, VectorType, make_matrix
from taichi.lang.matrix import (Matrix, MatrixType, Vector, VectorType,
make_matrix)
from taichi.lang.struct import StructType
from taichi.lang.util import cook_dtype
from taichi.types.primitive_types import RefType, f32, u64
Expand Down
3 changes: 2 additions & 1 deletion python/taichi/lang/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,8 @@ def fill(self, val):
else:
assert self.ndim == 1
val = tuple(val for _ in range(self.n))
elif isinstance(val, Matrix) or (isinstance(val, expr.Expr) and val.is_tensor()):
elif isinstance(val, Matrix) or (isinstance(val, expr.Expr)
and val.is_tensor()):
assert val.n == self.n
if self.ndim != 1:
assert val.m == self.m
Expand Down

0 comments on commit 4eb01fc

Please sign in to comment.