/external/tensorflow/tensorflow/core/kernels/ |
D | resize_bilinear_op_gpu.cu.cc | 62 const float x_lerp = in_x - left_x_index; in ResizeBilinearKernel() local 81 const float top = top_left + (top_right - top_left) * x_lerp; in ResizeBilinearKernel() 82 const float bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in ResizeBilinearKernel() 117 const float x_lerp = original_x - floorf(original_x); in ResizeBilinearGradKernel() local 125 static_cast<T>((1 - x_lerp) * dtop)); in ResizeBilinearGradKernel() 131 static_cast<T>(x_lerp * dtop)); in ResizeBilinearGradKernel() 139 static_cast<T>((1 - x_lerp) * dbottom)); in ResizeBilinearGradKernel() 145 static_cast<T>(x_lerp * dbottom)); in ResizeBilinearGradKernel() 176 const float x_lerp = in_x - left_x_index; in LegacyResizeBilinearKernel() local 195 const float top = top_left + (top_right - top_left) * x_lerp; in LegacyResizeBilinearKernel() [all …]
|
D | crop_and_resize_op_gpu.cu.cc | 95 const float x_lerp = in_x - left_x_index; in CropAndResizeKernel() local 117 const float top = top_left + (top_right - top_left) * x_lerp; in CropAndResizeKernel() 118 const float bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in CropAndResizeKernel() 185 const float x_lerp = in_x - left_x_index; in CropAndResizeBackpropImageKernel() local 193 static_cast<T>((1 - x_lerp) * dtop)); in CropAndResizeBackpropImageKernel() 199 static_cast<T>(x_lerp * dtop)); in CropAndResizeBackpropImageKernel() 207 static_cast<T>((1 - x_lerp) * dbottom)); in CropAndResizeBackpropImageKernel() 213 static_cast<T>(x_lerp * dbottom)); in CropAndResizeBackpropImageKernel() 285 const float x_lerp = in_x - left_x_index; in CropAndResizeBackpropBoxesKernel() local 309 float image_grad_y = (1 - x_lerp) * (bottom_left - top_left) + in CropAndResizeBackpropBoxesKernel() [all …]
|
D | resize_bilinear_op.cc | 104 const float x_lerp, const float y_lerp) { in compute_lerp() argument 105 const float top = top_left + (top_right - top_left) * x_lerp; in compute_lerp() 106 const float bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in compute_lerp() 336 const float x_lerp = in_x - floorf(in_x); in ResizeGradCore() local 337 const float inverse_x_lerp = (1.0f - x_lerp); in ResizeGradCore() 342 T(input_grad(b, y, x, c) * inverse_y_lerp * x_lerp); in ResizeGradCore() 346 T(input_grad(b, y, x, c) * y_lerp * x_lerp); in ResizeGradCore()
|
D | crop_and_resize_op.cc | 268 const float x_lerp = in_x - left_x_index; in operator ()() local 279 const float top = top_left + (top_right - top_left) * x_lerp; in operator ()() 281 bottom_left + (bottom_right - bottom_left) * x_lerp; in operator ()() 484 const float x_lerp = in_x - left_x_index; in operator ()() local 489 static_cast<T>((1 - x_lerp) * dtop); in operator ()() 491 static_cast<T>(x_lerp * dtop); in operator ()() 494 static_cast<T>((1 - x_lerp) * dbottom); in operator ()() 496 static_cast<T>(x_lerp * dbottom); in operator ()() 664 const float x_lerp = in_x - left_x_index; in operator ()() local 676 float image_grad_y = (1 - x_lerp) * (bottom_left - top_left) + in operator ()() [all …]
|
D | quantized_resize_bilinear_op_test.cc | 83 const float x_lerp, const float y_lerp, const float min, in ComputeLerpReference() argument 89 const float top = top_left + (top_right - top_left) * x_lerp; in ComputeLerpReference() 90 const float bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in ComputeLerpReference() 100 const float x_lerp, const float y_lerp, in ComputeLerpReference() argument 102 const float top = in_top_left + (in_top_right - in_top_left) * x_lerp; in ComputeLerpReference() 104 in_bottom_left + (in_bottom_right - in_bottom_left) * x_lerp; in ComputeLerpReference()
|
D | quantization_utils_test.cc | 827 T_CALC bottom_right, T_CALC x_lerp, T_CALC y_lerp) { in ComputeRefLerp() argument 830 top_left * RESOLUTION_POW + (top_right - top_left) * x_lerp; in ComputeRefLerp() 832 bottom_left * RESOLUTION_POW + (bottom_right - bottom_left) * x_lerp; in ComputeRefLerp() 839 uint8 bottom_right, int16 x_lerp, int16 y_lerp) { in TestComputeLerp8x8() argument 844 int16x8_t x_lerp16x8 = To16x8(x_lerp); in TestComputeLerp8x8() 855 static_cast<int16>(bottom_left), static_cast<int16>(bottom_right), x_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 876 int32x2_t x_lerp32x2 = To32x2(x_lerp); in TestComputeLerp32x2() 886 static_cast<int64>(x_lerp), static_cast<int64>(y_lerp)); in TestComputeLerp32x2() [all …]
|
D | conv_ops_fused_image_transform.cc | 151 EIGEN_ALWAYS_INLINE T1 BilinearSample(int channel, T1 x_lerp, in BilinearSample() 154 top_left[channel] + (top_right[channel] - top_left[channel]) * x_lerp; in BilinearSample() 156 (bottom_right[channel] - bottom_left[channel]) * x_lerp; in BilinearSample() 215 x_lerp(other.x_lerp) {} in PerCachePixelParameters() 220 T1 x_lerp; member 249 result.x_lerp = static_cast<T1>(in_x - result.left_x_index); in CalculatePerCachePixelParameters() 531 pixel_params.x_lerp, in operator ()()
|
D | quantized_resize_bilinear_op.cc | 103 const float x_lerp, const float y_lerp, in ComputeLerpReference() argument 109 const float top = top_left + (top_right - top_left) * x_lerp; in ComputeLerpReference() 110 const float bottom = bottom_left + (bottom_right - bottom_left) * x_lerp; in ComputeLerpReference() 123 const T bottom_right, const T_SCALE x_lerp, in ComputeLerp() argument 127 MulOffset<T, T_SCALE, T_CALC>(top_right, top_left, x_lerp); in ComputeLerp() 130 MulOffset<T, T_SCALE, T_CALC>(bottom_right, bottom_left, x_lerp); in ComputeLerp() 182 const int32* x_lerp, const int32x2_t y_lerpsx) { in ComputeLerpx2() argument 184 X_LERP_SAME ? vld1_dup_s32(reinterpret_cast<const int32*>(x_lerp)) in ComputeLerpx2() 185 : vld1_s32(reinterpret_cast<const int32*>(x_lerp)); in ComputeLerpx2()
|
D | resize_bilinear_op_test.cc | 104 const float x_lerp = in_x - std::floor(in_x); in ResizeBilinearBaseline() local 112 const float top = top_left + (top_right - top_left) * x_lerp; in ResizeBilinearBaseline() 114 bottom_left + (bottom_right - bottom_left) * x_lerp; in ResizeBilinearBaseline()
|
D | quantization_utils.h | 474 const int32x2_t x_lerp, in ComputeLerp32x2() argument 486 vmlal_s32(top_left_x_res, top_right_sub_top_left, x_lerp); in ComputeLerp32x2() 490 vmlal_s32(bottom_left_x_res, bottom_right_sub_bottom_left, x_lerp); in ComputeLerp32x2() 510 const int16x8_t x_lerp, in ComputeLerp8x8() argument 524 vmlaq_s16(top_left_x_res, top_right_sub_top_left, x_lerp); in ComputeLerp8x8() 529 vmlaq_s16(bottom_left_x_res, bottom_right_sub_bottom_left, x_lerp); in ComputeLerp8x8()
|
/external/tensorflow/tensorflow/contrib/pi_examples/label_image/ |
D | label_image.cc | 188 const float x_lerp = in_x - left_x_index; in ReadTensorFromImageFile() local 197 const float top = top_left + (top_right - top_left) * x_lerp; in ReadTensorFromImageFile() 199 bottom_left + (bottom_right - bottom_left) * x_lerp; in ReadTensorFromImageFile()
|
/external/tensorflow/tensorflow/contrib/pi_examples/camera/ |
D | camera.cc | 377 const float x_lerp = in_x - left_x_index; in TensorFromFrame() local 386 const float top = top_left + (top_right - top_left) * x_lerp; in TensorFromFrame() 388 bottom_left + (bottom_right - bottom_left) * x_lerp; in TensorFromFrame()
|