Skip to content

Commit 33c4b0d

Browse files
mikey dagitsesfacebook-github-bot
authored andcommitted
remove unnecessary ATen/core/Macros.h (#76376)
Summary: Pull Request resolved: #76376 This is only used in a few places and only aliases the c10 macros header. ghstack-source-id: 156883107 Test Plan: Rely on CI. Reviewed By: dreiss, malfet Differential Revision: D35904936 fbshipit-source-id: 041be3498d6aee4481a46e885f37efa47907a09a
1 parent dc4c141 commit 33c4b0d

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

aten/src/ATen/core/Macros.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

torch/csrc/jit/frontend/function_schema_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#include <ATen/core/Macros.h>
43
#include <ATen/core/function_schema.h>
4+
#include <c10/macros/Macros.h>
55
#include <c10/util/either.h>
66
#include <string>
77

torch/csrc/jit/frontend/lexer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include <ATen/core/Macros.h>
2+
#include <c10/macros/Macros.h>
33
#include <c10/util/C++17.h>
44
#include <c10/util/Exception.h>
55
#include <torch/csrc/Export.h>

torch/csrc/jit/frontend/schema_type_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

3-
#include <ATen/core/Macros.h>
43
#include <ATen/core/alias_info.h>
54
#include <ATen/core/jit_type.h>
5+
#include <c10/macros/Macros.h>
66
#include <c10/util/FunctionRef.h>
77
#include <torch/csrc/jit/frontend/lexer.h>
88

torch/csrc/jit/frontend/strtod.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// https://github.com/JuliaLang/julia/blob/v1.1.0/src/support/strtod.c
33
#include <torch/csrc/jit/frontend/strtod.h>
44

5-
#include <ATen/core/Macros.h>
5+
#include <c10/macros/Macros.h>
66
#include <clocale>
77
#include <cstdlib>
88

torch/csrc/jit/frontend/strtod.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include <ATen/core/Macros.h>
3+
#include <c10/macros/Macros.h>
44

55
namespace torch {
66
namespace jit {

0 commit comments

Comments
 (0)