Skip to content

Commit

Permalink
Remove redundant check in schedulePointwise (csarofeen#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
zasdfgbnm authored Jul 11, 2022
1 parent acd5ed4 commit 10a996c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions torch/csrc/jit/codegen/cuda/scheduler/pointwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,22 +637,6 @@ void schedulePointwise(Fusion* fusion, const PointwiseParams& params) {
reference_tv != nullptr,
"Could not find a fully broadcasted output to reference schedule on.");

IterDomain* inner_most_id = nullptr;
for (auto it = reference_tv->domain()->domain().rbegin();
it != reference_tv->domain()->domain().rend();
it++) {
if ((*it)->isReduction()) {
continue;
}
if ((*it)->isBroadcast() && inner_most_id == nullptr) {
inner_most_id = *it;
}
inner_most_id = *it;
break;
}

TORCH_INTERNAL_ASSERT(inner_most_id != nullptr);

// Caches of inputs
std::vector<TensorView*> cached_inputs;

Expand Down

0 comments on commit 10a996c

Please sign in to comment.