From 6eb360e18c17faba99f1dac0656e28f142c73382 Mon Sep 17 00:00:00 2001 From: Denys Makoviichuk Date: Tue, 3 Sep 2024 10:20:48 -0700 Subject: [PATCH] [Bugfix] Fixed wrong capture counter (#12169) Fixed wrong capture counter --- ttnn/cpp/ttnn/graph/graph_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttnn/cpp/ttnn/graph/graph_processor.cpp b/ttnn/cpp/ttnn/graph/graph_processor.cpp index b40e22bd585..49e6f328370 100644 --- a/ttnn/cpp/ttnn/graph/graph_processor.cpp +++ b/ttnn/cpp/ttnn/graph/graph_processor.cpp @@ -118,8 +118,8 @@ void GraphProcessor::track_allocate(tt::tt_metal::Buffer* buffer, bool bottom_up void GraphProcessor::track_deallocate(tt::tt_metal::Buffer* buffer) { const std::lock_guard lock(mutex); - auto counter = graph.size(); auto buffer_idx = add_buffer(buffer); + auto counter = graph.size(); std::unordered_map params = { {kSize, std::to_string(buffer->size())}, {kType, buffer->is_dram() ? "DRAM" : "L1"},