/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 57 floorf((static_cast<float>(out_x) + 0.5f) * width_scale)), in ResizeNearestNeighborNHWC() 69 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborNHWC() argument 86 min((align_corners) ? static_cast<int>(roundf(out_x * width_scale)) in LegacyResizeNearestNeighborNHWC() 87 : static_cast<int>(floorf(out_x * width_scale)), in LegacyResizeNearestNeighborNHWC() 98 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborBackwardNHWC() argument 117 floorf((static_cast<float>(in_x) + 0.5f) * width_scale)), in ResizeNearestNeighborBackwardNHWC() 129 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborBackwardNHWC() argument 146 min((align_corners) ? static_cast<int>(roundf(in_x * width_scale)) in LegacyResizeNearestNeighborBackwardNHWC() 147 : static_cast<int>(floorf(in_x * width_scale)), in LegacyResizeNearestNeighborBackwardNHWC() [all …]
|
D | resize_nearest_neighbor_op.cc | 72 st.width_scale, output_data); in Compute() 78 st.width_scale, output_data); in Compute() 86 st.width_scale, output_data); in Compute() 92 st.width_scale, output_data); in Compute() 153 const float height_scale, const float width_scale) in ResizeNearestNeighborGenerator() argument 160 output_width, input_width, width_scale, xs_.data()); in ResizeNearestNeighborGenerator() 186 const float height_scale, const float width_scale, in operator ()() 193 width_scale); in operator ()() 253 const float width_scale = in Compute() local 263 width_scale, output_data); 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 59 const float in_x = (static_cast<float>(x) + 0.5f) * width_scale - 0.5f; in ResizeBilinearKernel_faster() 119 float width_scale, int batch, int in_height, int in_width, int channels, in ResizeBilinearKernel() argument 138 const float in_x = (static_cast<float>(x) + 0.5f) * width_scale - 0.5f; in ResizeBilinearKernel() 170 float height_scale, float width_scale, in ResizeBilinearGradKernel() argument 194 (static_cast<float>(x) + 0.5f) * width_scale - 0.5f; in ResizeBilinearGradKernel() 235 float height_scale, float inverse_height_scale, float width_scale, in ResizeBilinearDeterministicGradKernel() argument 256 const float out_x_start = (in_x_start + offset) * width_scale - offset; in ResizeBilinearDeterministicGradKernel() 275 out_x += width_scale; in ResizeBilinearDeterministicGradKernel() 288 float width_scale, int batch, int in_height, int in_width, int channels, in LegacyResizeBilinearKernel() argument [all …]
|
D | resize_bilinear_op.cc | 67 st.width_scale, half_pixel_centers_, output_data); in Compute() 145 const float height_scale, const float width_scale) in ResizeBilinearGenerator() argument 152 width_scale, xs_.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 ()() 239 st.width_scale, half_pixel_centers_, output_grad); in Compute() 251 st.width_scale, half_pixel_centers_, output_grad.tensor<float, 4>()); in Compute() 272 const float height_scale, const float width_scale, in ResizeGradCore() 305 const float in_x = scaler(x, width_scale); in ResizeGradCore() [all …]
|
D | resize_area_op_test.cc | 77 const float width_scale = in_width / static_cast<float>(out_width); in ResizeAreaBaseline() local 102 float scale = 1.0 / (height_scale * width_scale); in ResizeAreaBaseline() 113 const float in_x = x * width_scale; in ResizeAreaBaseline() 114 const float in_x1 = (x + 1) * width_scale; in ResizeAreaBaseline() 127 ? (j + 1 > in_x1 ? width_scale : j + 1 - in_x) 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 | 165 const float in_x = x * st.width_scale; in Compute() 166 const float in_x1 = (x + 1) * st.width_scale; in Compute() 173 v < in_x ? (v + 1 > in_x1 ? st.width_scale : v + 1 - in_x) in Compute() 180 v < in_x ? (v + 1 > in_x1 ? st.width_scale : v + 1 - in_x) in Compute() 222 float scale = 1.0 / (st.height_scale * st.width_scale); in ComputeLoop()
|
D | crop_and_resize_op_gpu.cu.cc | 69 const float width_scale = in CropAndResizeKernel() local 81 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeKernel() 162 const float width_scale = in CropAndResizeBackpropImageKernel() local 173 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeBackpropImageKernel() 265 const float width_scale = (crop_width > 1) ? (x2 - x1) * width_ratio : 0; in CropAndResizeBackpropBoxesKernel() local 275 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeBackpropBoxesKernel()
|
D | crop_and_resize_op.cc | 253 const float width_scale = in operator ()() local 276 ? x1 * (image_width - 1) + x * width_scale in operator ()() 306 ? x1 * (image_width - 1) + x * width_scale in operator ()() 479 const float width_scale = in operator ()() local 496 ? x1 * (image_width - 1) + x * width_scale in operator ()() 684 const float width_scale = (crop_width > 1) ? (x2 - x1) * width_ratio : 0; in operator ()() local 699 ? x1 * (image_width - 1) + x * width_scale in operator ()()
|
D | resize_bilinear_op_test.cc | 95 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBilinearBaseline() local 111 ? (static_cast<float>(x) + 0.5f) * width_scale - 0.5f in ResizeBilinearBaseline() 112 : x * width_scale; in ResizeBilinearBaseline()
|
D | resize_bicubic_op.cc | 216 resizer_state.width_scale, x, resizer_state.in_width, &(*x_wais)[x]); in ComputeXWeightsAndIndices() 224 resizer_state.width_scale, x, resizer_state.in_width, &(*x_wais)[x]); in ComputeXWeightsAndIndices() 245 GetWeightsAndIndices<HalfPixelScaler, true>(resizer_state.width_scale, x, in ComputeGradientXWeightsAndIndices() 255 GetWeightsAndIndices<LegacyScaler, false>(resizer_state.width_scale, x, in ComputeGradientXWeightsAndIndices()
|
D | resize_bicubic_op_test.cc | 127 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBicubicBaseline() local 139 GetWeightsAndIndices(width_scale, x, in_width, &x_weights, in ResizeBicubicBaseline()
|
/external/tensorflow/tensorflow/core/util/ |
D | image_resizer_state.h | 119 width_scale = CalculateResizeScale(in_width, out_width, align_corners_); in ValidateAndCalculateOutputSize() 129 ceilf((out_width - 1) * width_scale) <= static_cast<float>(INT_MAX), in ValidateAndCalculateOutputSize() 152 float width_scale; member 218 width_scale = in ValidateAndCreateOutput() 235 float width_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 478 out_width, in_width, width_scale, channels, 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 545 BuildLerpCache<int32>(out_width, in_width, width_scale, channels, in ResizeImage() 597 const float height_scale, const float width_scale, in ResizeImage() argument 608 BuildLerpCache<int16>(out_width, in_width, width_scale, channels, 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 117 half_pixel_centers, out_width, in_width, channels, x, width_scale); in CalcReferenceResizedVal() 154 const float width_scale = in CheckTensorValue() local 163 out_height, out_width, channels, height_scale, width_scale, min, in CheckTensorValue()
|
D | conv_ops_fused_image_transform.cc | 244 in_x *= st.width_scale; in CalculatePerCachePixelParameters() 667 st.width_scale = 1.0f; in Compute()
|
/external/XNNPACK/src/ |
D | indirection.c | 350 const float width_scale = in xnn_indirection_init_resize_bilinear2d_hwc_f32() local 367 const float input_x = (float) (int32_t) output_x * width_scale; in xnn_indirection_init_resize_bilinear2d_hwc_f32() 390 const float width_offset = 0.5f * width_scale - 0.5f; in xnn_indirection_init_resize_bilinear2d_hwc_f32() 399 float input_x = (float) (int32_t) output_x * width_scale + width_offset; in xnn_indirection_init_resize_bilinear2d_hwc_f32() 445 const float width_scale = in xnn_indirection_init_resize_bilinear2d_chw_f32() local 462 const float input_x = (float) (int32_t) output_x * width_scale; in xnn_indirection_init_resize_bilinear2d_chw_f32() 487 const float width_offset = 0.5f * width_scale - 0.5f; in xnn_indirection_init_resize_bilinear2d_chw_f32() 496 float input_x = (float) (int32_t) output_x * width_scale + width_offset; in xnn_indirection_init_resize_bilinear2d_chw_f32()
|
/external/XNNPACK/test/ |
D | resize-bilinear-operator-tester.h | 88 inline float width_scale() const { in width_scale() function 248 const float input_x = (float(output_x) + offset) * width_scale() - offset; in TestNHWCxF32() 333 const float input_x = (float(output_x) + offset) * width_scale() - offset; in TestNCHWxF32()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | reference_ops.h | 1228 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 1233 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 1245 ComputeInterpolationValues(x, width_scale, op_params.half_pixel_centers, in ResizeBilinear()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 4779 float width_scale, const RuntimeShape& input_shape, const float* input_data, in ResizeBilinearGeneric() argument 4797 x, width_scale, half_pixel_centers, input_width, &input_x, &x0, in ResizeBilinearGeneric() 4832 float width_scale, const RuntimeShape& input_shape, const T* input_data, in ResizeBilinearGenericSmallChannel() argument 4847 x, width_scale, half_pixel_centers, input_width, &input_x, &x0, in ResizeBilinearGenericSmallChannel() 4905 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 4910 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 4915 width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 4953 float width_scale = in ResizeBilinear() local 4960 height_scale, width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 6060 int32 width_scale = (input_width << 16) / output_width + 1; in ResizeNearestNeighbor() local [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_meta_copy.c | 1356 float width_scale, in create_image_alias() argument 1369 .width = src->extent.width * width_scale, in create_image_alias()
|