Skip to content

Commit

Permalink
[GCC9][Werror]fix -Werror=maybe-uninitialized (#52265)
Browse files Browse the repository at this point in the history
fix with auto&
  • Loading branch information
engineer1109 authored Mar 31, 2023
1 parent c30e7b8 commit 74d87a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class CPUROIPerspectiveTransformOpKernel : public framework::OpKernel<T> {
auto transformed_width = ctx.Attr<int>("transformed_width");
auto spatial_scale = ctx.Attr<float>("spatial_scale");

auto in_dims = in->dims();
const auto& in_dims = in->dims();
int channels = in_dims[1];
int in_height = in_dims[2];
int in_width = in_dims[3];
Expand Down

0 comments on commit 74d87a6

Please sign in to comment.