Searched refs:x_lerp (Results 1 – 6 of 6) sorted by relevance
91 float x_lerp = in_x - floorf(in_x); in ResizeBiLinearGrad() local92 const float inverse_x_lerp = 1.0 - x_lerp; in ResizeBiLinearGrad()103 … out_addr[out_offset_top_y_right_x] += in_addr[in_offset] * (float)(inverse_y_lerp * x_lerp); in ResizeBiLinearGrad()105 out_addr[out_offset_bottom_y_right_x] += in_addr[in_offset] * (float)(y_lerp * x_lerp); in ResizeBiLinearGrad()131 const float x_lerp = in_x - floorf(in_x); in ResizeBiLinearGrad() local132 const float inverse_x_lerp = 1.0 - x_lerp; in ResizeBiLinearGrad()136 in_addr[h * in_width + w] * (float)(inverse_y_lerp * x_lerp); in ResizeBiLinearGrad()140 in_addr[h * in_width + w] * (float)(y_lerp * x_lerp); in ResizeBiLinearGrad()
90 float16_t x_lerp = in_x - floorf(in_x); in ResizeBiLinearFp16Grad() local91 const float16_t inverse_x_lerp = 1.0 - x_lerp; in ResizeBiLinearFp16Grad()102 … out_addr[out_offset_top_y_right_x] += in_addr[in_offset] * (float16_t)(inverse_y_lerp * x_lerp); in ResizeBiLinearFp16Grad()104 … out_addr[out_offset_bottom_y_right_x] += in_addr[in_offset] * (float16_t)(y_lerp * x_lerp); in ResizeBiLinearFp16Grad()128 const float16_t x_lerp = in_x - floorf(in_x); in ResizeBiLinearFp16Grad() local129 const float16_t inverse_x_lerp = 1.0 - x_lerp; in ResizeBiLinearFp16Grad()133 in_addr[h * in_width + w] * (float16_t)(inverse_y_lerp * x_lerp); in ResizeBiLinearFp16Grad()137 in_addr[h * in_width + w] * (float16_t)(y_lerp * x_lerp); in ResizeBiLinearFp16Grad()
136 const float x_lerp = in_x - floorf(in_x); in LaunchKernel() local137 const float inverse_x_lerp = 1.0 - x_lerp; in LaunchKernel()141 cur_dloss_addr[h * in_width + w] * static_cast<float>(inverse_y_lerp * x_lerp); in LaunchKernel()145 cur_dloss_addr[h * in_width + w] * static_cast<float>(y_lerp * x_lerp); in LaunchKernel()
184 const float x_lerp = x_point - left_x_index; in Launch() local204 output[pos] = top_left * (1 - y_lerp) * (1 - x_lerp) + bottom_right * y_lerp * x_lerp + in Launch()205 top_right * (1 - y_lerp) * x_lerp + bottom_left * y_lerp * (1 - x_lerp); in Launch()
76 const float x_lerp = target_x - left_x_index; in CropAndResize() local87 const float top = top_left + (top_right - top_left) * x_lerp; in CropAndResize()88 const float bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in CropAndResize()
132 inline T ComputeLerp(T top_left, T top_right, T bottom_left, T bottom_right, T x_lerp, T y_lerp) { in ComputeLerp() argument133 T top = top_left + (top_right - top_left) * x_lerp; in ComputeLerp()134 T bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in ComputeLerp()