From 605f2d802a2fec1fe755aeb4623d4ac3317bc617 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Tue, 17 Sep 2024 09:18:28 -0700 Subject: [PATCH] [PyTorch] Remove unnecessary include of c10/util/Exception.h in irange.h (#136202) Manually audited and can't figure out why this would be needed. Differential Revision: [D62879500](https://our.internmc.facebook.com/intern/diff/D62879500/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/136202 Approved by: https://github.com/malfet --- c10/mobile/CPUProfilingAllocator.cpp | 1 + c10/util/irange.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/c10/mobile/CPUProfilingAllocator.cpp b/c10/mobile/CPUProfilingAllocator.cpp index c655d7953a0..2fc569135e2 100644 --- a/c10/mobile/CPUProfilingAllocator.cpp +++ b/c10/mobile/CPUProfilingAllocator.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include diff --git a/c10/util/irange.h b/c10/util/irange.h index 3d7c607a1e9..2719a82075c 100644 --- a/c10/util/irange.h +++ b/c10/util/irange.h @@ -2,7 +2,6 @@ #pragma once -#include #include #include