提交 b02fd3d8 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!3106 Optimization for map_data_.clear()

Merge pull request !3106 from Kang/optimization
......@@ -88,7 +88,9 @@ class OrderedMap {
}
void clear() {
map_data_.clear();
if (!map_data_.empty()) {
map_data_.clear();
}
sequential_data_.clear();
}
......
......@@ -127,7 +127,9 @@ class OrderedSet {
// Clear the elements
void clear() {
mapped_data_.clear();
if (!mapped_data_.empty()) {
mapped_data_.clear();
}
ordered_data_.clear();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册