Skip to content

Commit

Permalink
add_where_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaohehe001 committed Nov 10, 2022
1 parent 315cd92 commit df8f8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/inference/tensorrt/convert/where_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class WhereOpConverter : public OpConverter {
std::string input_x_name = op_desc.Input("X").front();
std::string condition_name = op_desc.Input("Condition").front();
std::string input_y_name = op_desc.Input("Y").front();
std::string output_name = op_desc.Output("Out")[0];
std::string output_name = op_desc.Output("Out").front();

const auto input_x_tensor = engine_->GetITensor(input_x_name);
const auto condition_tensor = engine_->GetITensor(condition_name);
Expand Down

0 comments on commit df8f8bb

Please sign in to comment.