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 1, 2022
1 parent 89a1f96 commit a875e16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taichi/transforms/scalarize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ class Scalarize : public BasicStmtVisitor {
op3_dtype->is<TensorType>()) {
// Make sure broadcasting has been correctly applied by
// TernaryOpExpression::type_check().
TI_ASSERT(cond_dtype->is<TensorType>() && op2_dtype->is<TensorType>() && op3_dtype->is<TensorType>());
TI_ASSERT(cond_dtype->is<TensorType>() && op2_dtype->is<TensorType>() &&
op3_dtype->is<TensorType>());
// However, since the type conversions are delayed until
// irpass::type_check(), we only check for the shape here.
TI_ASSERT(cond_dtype.get_shape() == op2_dtype.get_shape());
Expand Down

0 comments on commit a875e16

Please sign in to comment.