Skip to content

Commit

Permalink
fix -Werror=maybe-uninitialized
Browse files Browse the repository at this point in the history
fix with auto&
  • Loading branch information
engineer1109 committed Mar 31, 2023
1 parent 2e9fd5e commit 2668153
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 2668153

Please sign in to comment.