From: Han Guangyun Date: Thu, 9 Sep 2021 20:02:56 +0000 (-0700) Subject: Rename profiler metadata key (#63743) X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f1932e1b9791cb34a88a789b4774973f59aefef;p=platform%2Fupstream%2Fpytorch.git 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 --- 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