/external/tensorflow/tensorflow/core/kernels/image/ |
D | resize_nearest_neighbor_op_gpu.cu.cc | 38 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborNHWC() argument 52 floorf((static_cast<float>(out_y) + 0.5f) * height_scale)), in ResizeNearestNeighborNHWC() 69 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborNHWC() argument 82 min((align_corners) ? static_cast<int>(roundf(out_y * height_scale)) in LegacyResizeNearestNeighborNHWC() 83 : static_cast<int>(floorf(out_y * height_scale)), in LegacyResizeNearestNeighborNHWC() 98 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborBackwardNHWC() argument 112 floorf((static_cast<float>(in_y) + 0.5f) * height_scale)), in ResizeNearestNeighborBackwardNHWC() 129 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborBackwardNHWC() argument 142 min((align_corners) ? static_cast<int>(roundf(in_y * height_scale)) in LegacyResizeNearestNeighborBackwardNHWC() 143 : static_cast<int>(floorf(in_y * height_scale)), in LegacyResizeNearestNeighborBackwardNHWC() [all …]
|
D | resize_nearest_neighbor_op.cc | 71 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 77 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 85 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 91 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 153 const float height_scale, const float width_scale) in ResizeNearestNeighborGenerator() argument 158 output_height, input_height, height_scale, ys_.data()); in ResizeNearestNeighborGenerator() 186 const float height_scale, const float width_scale, in operator ()() 192 generator(input, output_height, output_width, height_scale, in operator ()() 251 const float height_scale = in Compute() local 262 context->eigen_device<Device>(), input_data, height_scale, in Compute() [all …]
|
D | resize_bilinear_op_gpu.cu.cc | 38 float height_scale, float width_scale, int batch, int in_height, in ResizeBilinearKernel_faster() argument 52 const float in_y = (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearKernel_faster() 118 const int32 nthreads, const T* __restrict__ images, float height_scale, in ResizeBilinearKernel() argument 131 const float in_y = (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearKernel() 170 float height_scale, float width_scale, in ResizeBilinearGradKernel() argument 186 (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearGradKernel() 235 float height_scale, float inverse_height_scale, float width_scale, in ResizeBilinearDeterministicGradKernel() argument 252 const float out_y_start = (in_y_start + offset) * height_scale - offset; in ResizeBilinearDeterministicGradKernel() 278 out_y += height_scale; in ResizeBilinearDeterministicGradKernel() 287 const int32 nthreads, const T* __restrict__ images, float height_scale, in LegacyResizeBilinearKernel() argument [all …]
|
D | resize_bilinear_op.cc | 66 context->eigen_device<Device>(), image_data, st.height_scale, in Compute() 145 const float height_scale, const float width_scale) in ResizeBilinearGenerator() argument 150 output_height, input_height, height_scale, ys_.data()); in ResizeBilinearGenerator() 183 const float height_scale, const float width_scale, in operator ()() 200 images, output_height, output_width, height_scale, width_scale); in operator ()() 204 images, output_height, output_width, height_scale, width_scale); in operator ()() 238 context->eigen_device<Device>(), input_grad, st.height_scale, in Compute() 250 context->eigen_device<Device>(), input_grad, st.height_scale, in Compute() 272 const float height_scale, const float width_scale, in ResizeGradCore() 296 const float in_y = scaler(y, height_scale); in ResizeGradCore() [all …]
|
D | resize_area_op_test.cc | 76 const float height_scale = in_height / static_cast<float>(out_height); in ResizeAreaBaseline() local 102 float scale = 1.0 / (height_scale * width_scale); in ResizeAreaBaseline() 105 const float in_y = y * height_scale; in ResizeAreaBaseline() 106 const float in_y1 = (y + 1) * height_scale; in ResizeAreaBaseline() 123 ? (i + 1 > in_y1 ? height_scale : i + 1 - in_y) in ResizeAreaBaseline()
|
D | resize_bilinear_op.h | 29 const float height_scale, const float width_scale, 38 const float height_scale, const float width_scale,
|
D | resize_nearest_neighbor_op.h | 29 const float height_scale, const float width_scale, 38 const float height_scale, const float width_scale,
|
D | resize_area_op.cc | 222 float scale = 1.0 / (st.height_scale * st.width_scale); in ComputeLoop() 226 const float in_y = y * st.height_scale; in ComputeLoop() 227 const float in_y1 = (y + 1) * st.height_scale; in ComputeLoop() 237 scale_y = (i + 1 > in_y1 ? st.height_scale : i + 1 - in_y); in ComputeLoop()
|
D | crop_and_resize_op_gpu.cu.cc | 66 const float height_scale = in CropAndResizeKernel() local 73 ? y1 * (image_height - 1) + y * height_scale in CropAndResizeKernel() 159 const float height_scale = in CropAndResizeBackpropImageKernel() local 166 ? y1 * (image_height - 1) + y * height_scale in CropAndResizeBackpropImageKernel() 264 const float height_scale = (crop_height > 1) ? (y2 - y1) * height_ratio : 0; in CropAndResizeBackpropBoxesKernel() local 268 ? y1 * (image_height - 1) + y * height_scale in CropAndResizeBackpropBoxesKernel()
|
D | resize_bicubic_op.cc | 316 resizer_state.height_scale, y, resizer_state.in_height, &y_wai); in interpolate_with_caching() 319 resizer_state.height_scale, y, resizer_state.in_height, &y_wai); in interpolate_with_caching() 480 const float height_scale = resizer_state.height_scale; in ResizeBicubicGrad() local 494 GetWeightsAndIndices<HalfPixelScaler, true>(height_scale, y, in ResizeBicubicGrad() 497 GetWeightsAndIndices<LegacyScaler, false>(height_scale, y, in ResizeBicubicGrad()
|
D | crop_and_resize_op.cc | 249 const float height_scale = in operator ()() local 259 ? y1 * (image_height - 1) + y * height_scale in operator ()() 475 const float height_scale = in operator ()() local 485 ? y1 * (image_height - 1) + y * height_scale in operator ()() 682 const float height_scale = in operator ()() local 688 ? y1 * (image_height - 1) + y * height_scale in operator ()()
|
D | resize_bilinear_op_test.cc | 94 const float height_scale = in_height / static_cast<float>(out_height); in ResizeBilinearBaseline() local 101 ? (static_cast<float>(y) + 0.5f) * height_scale - 0.5f in ResizeBilinearBaseline() 102 : y * height_scale; in ResizeBilinearBaseline()
|
D | resize_bicubic_op_test.cc | 126 const float height_scale = in_height / static_cast<float>(out_height); in ResizeBicubicBaseline() local 134 GetWeightsAndIndices(height_scale, y, in_height, &y_weights, in ResizeBicubicBaseline()
|
/external/tensorflow/tensorflow/core/util/ |
D | image_resizer_state.h | 118 height_scale = CalculateResizeScale(in_height, out_height, align_corners_); in ValidateAndCalculateOutputSize() 123 ceilf((out_height - 1) * height_scale) <= in ValidateAndCalculateOutputSize() 151 float height_scale; member 216 height_scale = in ValidateAndCreateOutput() 234 float height_scale; member
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_resize_bilinear_op.cc | 471 const float height_scale, const float width_scale, in ResizeImageReference() argument 480 out_height, in_height, height_scale, 1, 0, half_pixel_centers); in ResizeImageReference() 520 const float height_scale, const float width_scale, in ResizeImage() argument 525 out_width, channels, height_scale, width_scale, in ResizeImage() 534 const float height_scale, const float width_scale, in ResizeImage() argument 548 out_height, in_height, height_scale, 1, RESOLUTION, half_pixel_centers); in ResizeImage() 597 const float height_scale, const float width_scale, in ResizeImage() argument 611 out_height, in_height, height_scale, 1, RESOLUTION, half_pixel_centers); in ResizeImage() 659 const float height_scale, const float width_scale, in ResizeBilinear() argument 681 out_width, channels, height_scale, width_scale, in ResizeBilinear() [all …]
|
D | quantized_resize_bilinear_op_test.cc | 113 const float height_scale, const float width_scale, in CalcReferenceResizedVal() argument 119 half_pixel_centers, out_height, in_height, 1, y, height_scale); in CalcReferenceResizedVal() 152 const float height_scale = in CheckTensorValue() local 163 out_height, out_width, channels, height_scale, width_scale, min, in CheckTensorValue()
|
D | conv_ops_fused_image_transform.cc | 195 in_y *= st.height_scale; in CalculatePerCacheLineParameters() 666 st.height_scale = 1.0f; in Compute()
|
/external/XNNPACK/src/ |
D | indirection.c | 352 const float height_scale = in xnn_indirection_init_resize_bilinear2d_hwc_f32() local 359 const float input_y = (float) (int32_t) output_y * height_scale; in xnn_indirection_init_resize_bilinear2d_hwc_f32() 389 const float height_offset = 0.5f * height_scale - 0.5f; in xnn_indirection_init_resize_bilinear2d_hwc_f32() 392 float input_y = (float) (int32_t) output_y * height_scale + height_offset; in xnn_indirection_init_resize_bilinear2d_hwc_f32() 447 const float height_scale = in xnn_indirection_init_resize_bilinear2d_chw_f32() local 454 const float input_y = (float) (int32_t) output_y * height_scale; in xnn_indirection_init_resize_bilinear2d_chw_f32() 486 const float height_offset = 0.5f * height_scale - 0.5f; in xnn_indirection_init_resize_bilinear2d_chw_f32() 489 float input_y = (float) (int32_t) output_y * height_scale + height_offset; in xnn_indirection_init_resize_bilinear2d_chw_f32()
|
/external/XNNPACK/test/ |
D | resize-bilinear-operator-tester.h | 80 inline float height_scale() const { in height_scale() function 243 const float input_y = (float(output_y) + offset) * height_scale() - offset; in TestNHWCxF32() 328 const float input_y = (float(output_y) + offset) * height_scale() - offset; in TestNCHWxF32()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | reference_ops.h | 1227 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 1230 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 1240 ComputeInterpolationValues(y, height_scale, op_params.half_pixel_centers, in ResizeBilinear()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 4778 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGeneric() argument 4791 y, height_scale, half_pixel_centers, input_height, &input_y, &y0, in ResizeBilinearGeneric() 4831 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGenericSmallChannel() argument 4841 y, height_scale, half_pixel_centers, input_height, &input_y, &y0, in ResizeBilinearGenericSmallChannel() 4904 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 4907 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 4914 output_height, output_width, height_scale, in ResizeBilinear() 4948 float height_scale = in ResizeBilinear() local 4960 height_scale, width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 6059 int32 height_scale = (input_height << 16) / output_height + 1; in ResizeNearestNeighbor() local [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_meta_copy.c | 1357 float height_scale, in create_image_alias() argument 1370 .height = src->extent.height * height_scale, in create_image_alias()
|