未验证 提交 63e0f695 编写于 作者: B Bluebird 提交者: GitHub

[LITE][OPENCL]fix static_cast error ,test=mobile (#3047)

上级 40764c5e
......@@ -41,8 +41,8 @@ void BilinearInterpKernel<GPU_CL, float>::Compute(
scale_h = (input->dims()[2] - 1.0f) / (output->dims()[2] - 1.0f);
scale_w = (input->dims()[3] - 1.0f) / (output->dims()[3] - 1.0f);
} else {
scale_h = input->dims()[2] / static_cast<float> output->dims()[2];
scale_w = input->dims()[3] / static_cast<float> output->dims()[3];
scale_h = input->dims()[2] / static_cast<float>(output->dims()[2]);
scale_w = input->dims()[3] / static_cast<float>(output->dims()[3]);
}
float align_delta = 0.0f;
if (!param.AlignCorners() && param.AlignMode() == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册