Summary:
It was previously used to sure that ATen/core was working;
but now we have plenty of headers and C++ files in ATen/core
so this is no longer necessary.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14622
Differential Revision:
D13276899
Pulled By: ezyang
fbshipit-source-id:
9bef7eb1882ccdfa3ee7681a3d5b048ea94b59d3
#include "ATen/detail/ComplexHooksInterface.h"
#include "c10/util/Exception.h"
-// This is temporary
-#include "ATen/core/ATenCoreTest.h"
-
#include <memory>
#include <mutex>
#include <cstdint>
+++ /dev/null
-#include <ATen/core/ATenCoreTest.h>
-#include <ATen/core/Tensor.h>
-
-namespace at {
-
-static int CoreTestGlobal = 0;
-int CoreTest() {
- Tensor x;
- return CoreTestGlobal++;
-}
-
-} // namespace at
+++ /dev/null
-#pragma once
-
-#include <c10/macros/Macros.h>
-
-namespace at {
-
-CAFFE2_API int CoreTest();
-}
ASSERT_TRUE(result.allclose(mse_loss(relu(tensor), other)));
}
-void TestCore() {
- int i = CoreTest();
- ASSERT_EQ_RESOLVED(i + 1, CoreTest());
-}
-
void test(Type& type) {
TestResize(type);
TestOnesAndDot(type);
TestIndexingByZerodimTensor();
TestIndexingMixedDevice(type);
TestDispatch();
- TestCore();
}
TEST(BasicTest, BasicTestCPU) {
#include <c10/util/typeid.h>
#include "caffe2/proto/caffe2_pb.h"
-#include <ATen/core/ATenCoreTest.h>
#include <c10/util/ArrayRef.h>
C10_DECLARE_bool(caffe2_report_cpu_memory_usage);
namespace caffe2 {
-TEST(CPUContextTest, ATenCoreTest) {
- int i = at::CoreTest();
- EXPECT_EQ(i + 1, at::CoreTest());
-}
-
TEST(CPUContextTest, TestAllocAlignment) {
for (int i = 1; i < 10; ++i) {
auto data = CPUContext::New(i);