From 7f1932e1b9791cb34a88a789b4774973f59aefef Mon Sep 17 00:00:00 2001 From: Han Guangyun Date: Thu, 9 Sep 2021 13:02:56 -0700 Subject: [PATCH] Rename profiler metadata key (#63743) Summary: rename metadata key to be the same with variable name Pull Request resolved: https://github.com/pytorch/pytorch/pull/63743 Reviewed By: albanD Differential Revision: D30839501 Pulled By: gdankel fbshipit-source-id: b9b4e670dcc9557b8d8d0730baea0ad39a1a0ca4 --- torch/csrc/autograd/profiler_kineto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch/csrc/autograd/profiler_kineto.cpp b/torch/csrc/autograd/profiler_kineto.cpp index da1ae6f..ce96f84 100644 --- a/torch/csrc/autograd/profiler_kineto.cpp +++ b/torch/csrc/autograd/profiler_kineto.cpp @@ -154,10 +154,10 @@ struct KinetoThreadLocalState : public ProfilerThreadLocalState { "Addr", std::to_string(reinterpret_cast(ptr))); act.addMetadata("Bytes", std::to_string(alloc_size)); if (total_allocated >= 0) { - act.addMetadata("Allocated Bytes", std::to_string(total_allocated)); + act.addMetadata("Total Allocated", std::to_string(total_allocated)); } if (total_reserved >= 0) { - act.addMetadata("Reserved Bytes", std::to_string(total_reserved)); + act.addMetadata("Total Reserved", std::to_string(total_reserved)); } #endif // USE_KINETO -- 2.7.4