Skip to content

Commit

Permalink
[Dataflow]: nullptr check (#5176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ga authored Mar 30, 2020
1 parent 5a7d9a8 commit ae482a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/te/schedule/schedule_dataflow_rewrite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ void InjectInline(ScheduleNode* sch) {
if (!new_value.same_as(new_body[j][0])) {
changed[j] = true;
const tir::ReduceNode* r = new_value.as<tir::ReduceNode>();
CHECK_EQ(new_body[j].size(), r->source.size());
CHECK(r != nullptr);
CHECK_EQ(new_body[j].size(), r->source.size());
for (size_t k = 0; k < new_body[j].size(); ++k) {
auto n = make_object<tir::ReduceNode>(*r);
n->value_index = static_cast<int>(k);
Expand Down

0 comments on commit ae482a3

Please sign in to comment.