Skip to content

Commit

Permalink
Try fixing ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcao3 committed Dec 27, 2023
1 parent b0bcedc commit ae6a7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/analysis/alias_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ AliasResult alias_analysis(Stmt *var1, Stmt *var2) {
// ExternalPtrStmt as its origin If not, the pointers are not aliased
if (auto *matrix_ptr = other->cast<MatrixPtrStmt>()) {
external_ptr = matrix_ptr->origin->cast<ExternalPtrStmt>();
if (!external_ptr)
return AliasResult::different;
}
if (!external_ptr)
return AliasResult::different;
}
// If one external pointer references the grad tensor and the other
// references the data tensor, they are not aliased
Expand Down

0 comments on commit ae6a7b9

Please sign in to comment.