Unverified Commit d8ccbe7e authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Minor refactoring based on static analysis on the code of *ROIAlign: (#2892)

- Remove unnecessary return.
parent 2e23e477
......@@ -194,8 +194,6 @@ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx;
return;
}
template <class T>
......
......@@ -269,8 +269,6 @@ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx;
return;
}
template <class T>
......
......@@ -192,8 +192,6 @@ __device__ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx;
return;
}
template <typename T>
......
......@@ -194,8 +194,6 @@ __device__ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx;
return;
}
template <typename T>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment