Skip to content

Commit 95ad94c

Browse files
Mikhail Zolotukhinfacebook-github-bot
authored andcommitted
[TensorExpr] Nuke tensorexpr::schedule namespace. (#35126)
Summary: Pull Request resolved: #35126 Test Plan: Imported from OSS Differential Revision: D20569364 Pulled By: ZolotukhinM fbshipit-source-id: c0d51ecadf411918641cdbdc6d8cb06e207d2c9b
1 parent d609f35 commit 95ad94c

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

test/cpp/tensorexpr/test_cuda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace torch {
1919
namespace jit {
2020
using namespace torch::jit::tensorexpr;
21-
using namespace torch::jit::tensorexpr::schedule;
21+
using namespace torch::jit::tensorexpr;
2222

2323
template <typename ctype>
2424
void testCudaTestVectorAdd01_impl() {

test/cpp/tensorexpr/test_llvm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace torch {
1818
namespace jit {
1919
using namespace torch::jit::tensorexpr;
20-
using namespace torch::jit::tensorexpr::schedule;
20+
using namespace torch::jit::tensorexpr;
2121

2222
using LLVMExprEval = ExprEval<LLVMCodeGen>;
2323

test/cpp/tensorexpr/test_loopnest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace torch {
1717
namespace jit {
1818

1919
using namespace torch::jit::tensorexpr;
20-
using namespace torch::jit::tensorexpr::schedule;
20+
using namespace torch::jit::tensorexpr;
2121

2222
void testExprSimple01() {
2323
KernelScope kernel_scope;

torch/csrc/jit/tensorexpr/kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ void TensorExprKernel::lowerToBackend(BackendType backendType) {
990990
}
991991
}
992992

993-
torch::jit::tensorexpr::schedule::LoopNest l(tensorOutputs);
993+
torch::jit::tensorexpr::LoopNest l(tensorOutputs);
994994

995995
// Compute non-output tensors_ inline
996996
for (auto& p : tensors_) {

torch/csrc/jit/tensorexpr/loopnest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace torch {
1515
namespace jit {
1616
namespace tensorexpr {
17-
namespace schedule {
1817

1918
namespace {
2019

@@ -870,7 +869,6 @@ bool LoopNest::hasLoopBodyFor(Tensor* t) const {
870869
return tensor_to_stmt_.count(t) > 0;
871870
}
872871

873-
} // namespace schedule
874872
} // namespace tensorexpr
875873
} // namespace jit
876874
} // namespace torch

torch/csrc/jit/tensorexpr/loopnest.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
namespace torch {
1212
namespace jit {
1313
namespace tensorexpr {
14-
namespace schedule {
1514

1615
class TORCH_API LoopNest {
1716
public:
@@ -48,7 +47,6 @@ class TORCH_API LoopNest {
4847
std::unordered_set<Tensor*> output_tensors_;
4948
std::unordered_set<Tensor*> intermediate_tensors_;
5049
};
51-
} // namespace schedule
5250
} // namespace tensorexpr
5351
} // namespace jit
5452
} // namespace torch

0 commit comments

Comments
 (0)