Skip to content

Commit

Permalink
Fix eltwise shaper
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Jun 18, 2019
1 parent 38dd3bd commit 7c1d1b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/Shaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ void Shaper::Eltwise(const std::string &input1_name,
const std::string &output_name) {
auto shape1 = shape_map_.at(input1_name);
auto shape2 = shape_map_.at(input2_name);
// TODO: broadcasting
auto output_shape =
shape1.size() > shape2.size() ? shape1 : shape2; // broadcasting
shape1.size() >= shape2.size() ? shape1 : shape2;
shape_map_[output_name] = output_shape;
}

Expand Down

0 comments on commit 7c1d1b9

Please sign in to comment.