Skip to content

Commit 099aa52

Browse files
committed
IR: swap delete/erase to match the delete/erase pattern.
1 parent afaa003 commit 099aa52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/glow/Interpreter/Interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ void Interpreter::deleteTensor(const Value *v) {
4646
auto it = tensors_.find(v);
4747
assert(it != tensors_.end() && "Unknown key Value.");
4848
auto *T = it->second;
49-
tensors_.erase(it);
5049
delete T;
50+
tensors_.erase(it);
5151

5252
auto git = gradients_.find(T);
5353
if (git != gradients_.end()) {

0 commit comments

Comments
 (0)