Skip to content

Commit 6784694

Browse files
fix broadcastcomprel
1 parent 7a2dc43 commit 6784694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/relay/op/type_relations.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ bool BroadcastCompRel(const Array<Type>& types, int num_inputs, const Attrs& att
118118
CHECK_EQ(types.size(), 3);
119119
// DLOG(INFO) << "In1:" << types[0] << ",In2:" << types[1]
120120
// << ",Out:" << types[2] << std::endl;
121-
reporter->Assign(types[0], types[1]);
122121
if (auto* t0 = types[0].as<TensorTypeNode>()) {
123122
if (auto* t1 = types[1].as<TensorTypeNode>()) {
124123
CHECK_EQ(t0->dtype, t1->dtype);
@@ -127,6 +126,7 @@ bool BroadcastCompRel(const Array<Type>& types, int num_inputs, const Attrs& att
127126
return true;
128127
}
129128
}
129+
reporter->Assign(types[0], types[1]);
130130
return false;
131131
}
132132

0 commit comments

Comments
 (0)