Skip to content

Commit

Permalink
fix after mergin #2469: remove extra spaces (#2855)
Browse files Browse the repository at this point in the history
  • Loading branch information
apwojcik authored Mar 4, 2024
1 parent 84fc9f0 commit effedcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/targets/gpu/jit/roialign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ struct roialign_compiler : compiler<roialign_compiler>
auto mode = v.at("mode").to<migraphx::op::pooling_mode>();
std::string is_avg_pooling =
(mode == migraphx::op::pooling_mode::average) ? "true" : "false";
options.emplace_param(" -DIS_AVG_POOLING=" + is_avg_pooling);
options.emplace_param("-DIS_AVG_POOLING=" + is_avg_pooling);

// coord_trans_mode
auto ctm = v.at("coordinate_transformation_mode").to<std::string>();
float rois_offset = (ctm == "half_pixel") ? -0.5f : 0.0f;
options.emplace_param(" -DROIS_OFFSET=" + std::to_string(rois_offset));
options.emplace_param("-DROIS_OFFSET=" + std::to_string(rois_offset));

// spatial_scale
options.emplace_param("-DSPATIAL_SCALE=" + v.at("spatial_scale").to<std::string>());
Expand Down

0 comments on commit effedcd

Please sign in to comment.