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] authored and taichi-gardener committed Dec 19, 2024
1 parent 5f47e7e commit 980ffc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions taichi/analysis/gen_offline_cache_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ class ASTSerializer : public IRVisitor, public ExpressionVisitor {
emit(static_cast<std::size_t>(snode_tree_roots_.size()));
for (const auto *snode : snode_tree_roots_) {
std::string key;
if(snode_key_cache_.find(snode) == snode_key_cache_.end()){
if (snode_key_cache_.find(snode) == snode_key_cache_.end()) {
key = get_hashed_offline_cache_key_of_snode(snode);
snode_key_cache_[snode] = key;
}else{
} else {
key = snode_key_cache_[snode];
}
snode_key_cache_[snode] = key;
Expand Down
2 changes: 1 addition & 1 deletion taichi/analysis/offline_cache_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ std::string get_hashed_offline_cache_key_of_snode(const SNode *snode) {
BinaryOutputSerializer serializer;
serializer.initialize();
{
std::unordered_set<int> visited;
std::unordered_set<int> visited;
get_offline_cache_key_of_snode_impl(snode, serializer, visited);
}
serializer.finalize();
Expand Down

0 comments on commit 980ffc9

Please sign in to comment.