Skip to content

Commit

Permalink
[Dataflow]: nullptr check (apache#5176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ga authored and Trevor Morris committed Apr 16, 2020
1 parent b30d28d commit b285086
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 b285086

Please sign in to comment.