From b821aff98501c4ec3f8a67cc404123b1e6374711 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Thu, 25 Jul 2024 10:42:42 +0200 Subject: [PATCH] Update patch for v2.4.0 --- pytorch-missing-braces.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pytorch-missing-braces.patch b/pytorch-missing-braces.patch index 74359bd3687..ce4eaedb85a 100644 --- a/pytorch-missing-braces.patch +++ b/pytorch-missing-braces.patch @@ -1,8 +1,8 @@ diff --git a/torch/csrc/profiler/events.h b/torch/csrc/profiler/events.h -index a1a956f1327..a4e02c795d9 100644 +index 78bac1fea19..f08683223f0 100644 --- a/torch/csrc/profiler/events.h +++ b/torch/csrc/profiler/events.h -@@ -11,7 +11,7 @@ namespace profiler { +@@ -11,7 +11,7 @@ namespace torch::profiler { using perf_counters_t = std::vector; /* Standard list of performance events independent of hardware or backend */ @@ -11,15 +11,13 @@ index a1a956f1327..a4e02c795d9 100644 /* * Number of Processing Elelement (PE) cycles between two points of interest * in time. This should correlate positively with wall-time. Measured in -@@ -25,6 +25,6 @@ constexpr std::array ProfilerPerfEvents = { +@@ -25,5 +25,5 @@ constexpr std::array ProfilerPerfEvents = { * (i.e. work). Across repeat executions, the number of instructions should * be more or less invariant. Measured in uint64_t. PE can be non cpu. */ - "instructions"}; -+ "instructions" }}; - } // namespace profiler - } // namespace torch - ++ "instructions"}}; + } // namespace torch::profiler diff --git a/c10/util/typeid.h b/c10/util/typeid.h index 2c6ac38882f..d165059a956 100644 --- a/c10/util/typeid.h @@ -68,3 +66,5 @@ index 2c6ac38882f..d165059a956 100644 } /* + +