Move TensorTypeId to c10/core
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/14327
Reviewed By: ezyang
Differential Revision: D13131338
fbshipit-source-id: c4682cb6ed6fe4cd1636e09d918eef6e90c836f1
diff --git a/aten/src/ATen/core/TensorTypeId.h b/aten/src/ATen/core/TensorTypeId.h
index 0ea08cd..549b6d7 100644
--- a/aten/src/ATen/core/TensorTypeId.h
+++ b/aten/src/ATen/core/TensorTypeId.h
@@ -1,2 +1,2 @@
#pragma once
-#include <c10/util/TensorTypeId.h>
+#include <c10/core/TensorTypeId.h>
diff --git a/aten/src/ATen/core/TensorTypeIdRegistration.h b/aten/src/ATen/core/TensorTypeIdRegistration.h
index 024ef69..3d5cfa4 100644
--- a/aten/src/ATen/core/TensorTypeIdRegistration.h
+++ b/aten/src/ATen/core/TensorTypeIdRegistration.h
@@ -1,2 +1,2 @@
#pragma once
-#include "c10/util/TensorTypeIdRegistration.h"
+#include "c10/core/TensorTypeIdRegistration.h"
diff --git a/c10/util/TensorTypeId.cpp b/c10/core/TensorTypeId.cpp
similarity index 84%
rename from c10/util/TensorTypeId.cpp
rename to c10/core/TensorTypeId.cpp
index c51c31e..70ee5d6 100644
--- a/c10/util/TensorTypeId.cpp
+++ b/c10/core/TensorTypeId.cpp
@@ -1,4 +1,4 @@
-#include "c10/util/TensorTypeId.h"
+#include "c10/core/TensorTypeId.h"
#include "c10/util/string_utils.h"
namespace c10 {
diff --git a/c10/util/TensorTypeId.h b/c10/core/TensorTypeId.h
similarity index 100%
rename from c10/util/TensorTypeId.h
rename to c10/core/TensorTypeId.h
diff --git a/c10/util/TensorTypeIdRegistration.cpp b/c10/core/TensorTypeIdRegistration.cpp
similarity index 97%
rename from c10/util/TensorTypeIdRegistration.cpp
rename to c10/core/TensorTypeIdRegistration.cpp
index 9b45254..359f7e4 100644
--- a/c10/util/TensorTypeIdRegistration.cpp
+++ b/c10/core/TensorTypeIdRegistration.cpp
@@ -1,4 +1,4 @@
-#include <c10/util/TensorTypeIdRegistration.h>
+#include <c10/core/TensorTypeIdRegistration.h>
#include <c10/util/C++17.h>
#include <c10/util/Exception.h>
diff --git a/c10/util/TensorTypeIdRegistration.h b/c10/core/TensorTypeIdRegistration.h
similarity index 97%
rename from c10/util/TensorTypeIdRegistration.h
rename to c10/core/TensorTypeIdRegistration.h
index a926fdf..0b3acfc 100644
--- a/c10/util/TensorTypeIdRegistration.h
+++ b/c10/core/TensorTypeIdRegistration.h
@@ -9,8 +9,8 @@
* Both must be in the same namespace.
*/
-#include "c10/macros/Macros.h"
-#include "c10/util/TensorTypeId.h"
+#include <c10/macros/Macros.h>
+#include <c10/core/TensorTypeId.h>
#include <atomic>
#include <mutex>
diff --git a/aten/src/ATen/core/TensorTypeId_test.cpp b/c10/test/core/TensorTypeId_test.cpp
similarity index 66%
rename from aten/src/ATen/core/TensorTypeId_test.cpp
rename to c10/test/core/TensorTypeId_test.cpp
index 3ab902e..f308dcd 100644
--- a/aten/src/ATen/core/TensorTypeId_test.cpp
+++ b/c10/test/core/TensorTypeId_test.cpp
@@ -1,7 +1,7 @@
#include <gtest/gtest.h>
#include <sstream>
-#include "ATen/core/TensorTypeId.h"
-#include "ATen/core/TensorTypeIdRegistration.h"
+#include <c10/core/TensorTypeId.h>
+#include <c10/core/TensorTypeIdRegistration.h>
TEST(TensorTypeIdTest, Printing) {
std::ostringstream ss;