Skip to content

Commit

Permalink
[TensorExpr] Remove unused LoopNest::hasLoopBodyFor method. (pytorc…
Browse files Browse the repository at this point in the history
…h#55323)

Summary: Pull Request resolved: pytorch#55323

Differential Revision: D27694961

Test Plan: Imported from OSS

Reviewed By: SplitInfinity, gmagogsfm

Pulled By: ZolotukhinM

fbshipit-source-id: 367ae212054c3516409a568facc19a19671df488
  • Loading branch information
Mikhail Zolotukhin authored and facebook-github-bot committed Apr 13, 2021
1 parent f61556a commit 57f795c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions torch/csrc/jit/tensorexpr/loopnest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1864,10 +1864,6 @@ Stmt* LoopNest::getLoopBodyFor(const Buf* buf) const {
return (Stmt*)res; // NOLINT
}

bool LoopNest::hasLoopBodyFor(Tensor* t) const {
return getLoopBodyFor(t) != nullptr;
}

For* LoopNest::getParentLoop(const Stmt* st) {
if (st == nullptr) {
return nullptr;
Expand Down
1 change: 0 additions & 1 deletion torch/csrc/jit/tensorexpr/loopnest.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class TORCH_API LoopNest {
std::vector<For*> getLoopStmtsFor(Stmt*) const;
Stmt* getLoopBodyFor(Tensor*) const;
Stmt* getLoopBodyFor(const Buf*) const;
bool hasLoopBodyFor(Tensor*) const;

// Returns the For stmt that is immediately enclosing the given stmt.
static For* getParentLoop(const Stmt* st);
Expand Down

0 comments on commit 57f795c

Please sign in to comment.