/external/tensorflow/tensorflow/core/kernels/ |
D | resize_bilinear_op_gpu.cu.cc | 56 const float y_lerp = in_y - floorf(in_y); in ResizeBilinearKernel() local 83 output[out_idx] = top + (bottom - top) * y_lerp; in ResizeBilinearKernel() 108 const float y_lerp = original_y - floorf(original_y); in ResizeBilinearGradKernel() local 119 const float dtop = (1 - y_lerp) * input_grad[in_idx]; in ResizeBilinearGradKernel() 133 const float dbottom = y_lerp * input_grad[in_idx]; in ResizeBilinearGradKernel() 170 const float y_lerp = in_y - top_y_index; in LegacyResizeBilinearKernel() local 197 output[out_idx] = top + (bottom - top) * y_lerp; in LegacyResizeBilinearKernel() 221 const float y_lerp = original_y - top_y_index; in LegacyResizeBilinearGradKernel() local 230 const float dtop = (1 - y_lerp) * input_grad[in_idx]; in LegacyResizeBilinearGradKernel() 244 const float dbottom = y_lerp * input_grad[in_idx]; in LegacyResizeBilinearGradKernel()
|
D | crop_and_resize_op_gpu.cu.cc | 91 const float y_lerp = in_y - top_y_index; in CropAndResizeKernel() local 119 crops_ptr[out_idx] = top + (bottom - top) * y_lerp; in CropAndResizeKernel() 181 const float y_lerp = in_y - top_y_index; in CropAndResizeBackpropImageKernel() local 187 const float dtop = (1 - y_lerp) * grads_ptr[out_idx]; in CropAndResizeBackpropImageKernel() 201 const float dbottom = y_lerp * grads_ptr[out_idx]; in CropAndResizeBackpropImageKernel() 281 const float y_lerp = in_y - top_y_index; in CropAndResizeBackpropBoxesKernel() local 311 float image_grad_x = (1 - y_lerp) * (top_right - top_left) + in CropAndResizeBackpropBoxesKernel() 312 y_lerp * (bottom_right - bottom_left); in CropAndResizeBackpropBoxesKernel()
|
D | resize_bilinear_op.cc | 104 const float x_lerp, const float y_lerp) { in compute_lerp() argument 107 return top + (bottom - top) * y_lerp; in compute_lerp() 327 const float y_lerp = in_y - floorf(in_y); in ResizeGradCore() local 328 const float inverse_y_lerp = (1.0f - y_lerp); in ResizeGradCore() 344 T(input_grad(b, y, x, c) * y_lerp * inverse_x_lerp); in ResizeGradCore() 346 T(input_grad(b, y, x, c) * y_lerp * x_lerp); in ResizeGradCore()
|
D | crop_and_resize_op.cc | 254 const float y_lerp = in_y - top_y_index; in operator ()() local 282 crops(b, y, x, d) = top + (bottom - top) * y_lerp; in operator ()() 472 const float y_lerp = in_y - top_y_index; in operator ()() local 487 const float dtop = (1 - y_lerp) * grads(b, y, x, d); in operator ()() 492 const float dbottom = y_lerp * grads(b, y, x, d); in operator ()() 653 const float y_lerp = in_y - top_y_index; in operator ()() local 678 float image_grad_x = (1 - y_lerp) * (top_right - top_left) + in operator ()() 679 y_lerp * (bottom_right - bottom_left); in operator ()()
|
D | quantization_utils_test.cc | 827 T_CALC bottom_right, T_CALC x_lerp, T_CALC y_lerp) { in ComputeRefLerp() argument 833 const T_CALC out = top + (bottom - top) / RESOLUTION_POW * y_lerp; in ComputeRefLerp() 839 uint8 bottom_right, int16 x_lerp, int16 y_lerp) { in TestComputeLerp8x8() argument 845 int16x8_t y_lerp16x8 = To16x8(y_lerp); in TestComputeLerp8x8() 856 y_lerp); in TestComputeLerp8x8() 865 << static_cast<int>(bottom_right) << ", " << x_lerp << ", " << y_lerp in TestComputeLerp8x8() 871 int32 bottom_right, int32 x_lerp, int32 y_lerp) { in TestComputeLerp32x2() argument 877 int32x2_t y_lerp32x2 = To32x2(y_lerp); in TestComputeLerp32x2() 886 static_cast<int64>(x_lerp), static_cast<int64>(y_lerp)); in TestComputeLerp32x2() 890 << y_lerp << ", " << rets[0] << ", " << ref; in TestComputeLerp32x2()
|
D | conv_ops_fused_image_transform.cc | 132 y_lerp(other.y_lerp) {} in PerCacheLineParameters() 137 T1 y_lerp; member 152 T1 y_lerp) const { in BilinearSample() 157 return top + (bottom - top) * y_lerp; in BilinearSample() 199 result.y_lerp = static_cast<T1>(in_y - top_y_index); in CalculatePerCacheLineParameters() 532 line_params.y_lerp); in operator ()()
|
D | quantized_resize_bilinear_op_test.cc | 83 const float x_lerp, const float y_lerp, const float min, in ComputeLerpReference() argument 91 const float out = top + (bottom - top) * y_lerp; in ComputeLerpReference() 100 const float x_lerp, const float y_lerp, in ComputeLerpReference() argument 105 return top + (bottom - top) * y_lerp; in ComputeLerpReference()
|
D | resize_bilinear_op_test.cc | 94 const float y_lerp = in_y - std::floor(in_y); in ResizeBilinearBaseline() local 115 output(b, y, x, c) = top + (bottom - top) * y_lerp; in ResizeBilinearBaseline()
|
D | quantization_utils.h | 475 const int32x2_t y_lerp) { in ComputeLerp32x2() argument 497 vmlal_s32(top_x_res, bottom_sub_top_32, y_lerp); in ComputeLerp32x2() 511 const int16x8_t y_lerp) { in ComputeLerp8x8() argument 535 vmlaq_s16(top_x_res, bottom_sub_top, y_lerp); in ComputeLerp8x8()
|
D | quantized_resize_bilinear_op.cc | 103 const float x_lerp, const float y_lerp, in ComputeLerpReference() argument 111 const float out = top + (bottom - top) * y_lerp; in ComputeLerpReference() 124 const T_SCALE y_lerp) { in ComputeLerp() argument 131 const T_CALC out = top + (bottom - top) / RESOLUTION_MULT * y_lerp; in ComputeLerp()
|
/external/tensorflow/tensorflow/contrib/pi_examples/label_image/ |
D | label_image.cc | 171 const float y_lerp = in_y - top_y_index; in ReadTensorFromImageFile() local 200 out_pixel[c] = top + (bottom - top) * y_lerp; in ReadTensorFromImageFile()
|
/external/tensorflow/tensorflow/contrib/pi_examples/camera/ |
D | camera.cc | 360 const float y_lerp = in_y - top_y_index; in TensorFromFrame() local 389 out_pixel[c] = top + (bottom - top) * y_lerp; in TensorFromFrame()
|