Home
last modified time | relevance | path

Searched refs:height_scale (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/image/
Dresize_nearest_neighbor_op_gpu.cu.cc38 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 …]
Dresize_nearest_neighbor_op.cc71 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 …]
Dresize_bilinear_op_gpu.cu.cc38 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 …]
Dresize_bilinear_op.cc66 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 …]
Dresize_area_op_test.cc76 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()
Dresize_bilinear_op.h29 const float height_scale, const float width_scale,
38 const float height_scale, const float width_scale,
Dresize_nearest_neighbor_op.h29 const float height_scale, const float width_scale,
38 const float height_scale, const float width_scale,
Dresize_area_op.cc222 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()
Dcrop_and_resize_op_gpu.cu.cc66 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()
Dresize_bicubic_op.cc316 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()
Dcrop_and_resize_op.cc249 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 ()()
Dresize_bilinear_op_test.cc94 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()
Dresize_bicubic_op_test.cc126 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/
Dimage_resizer_state.h118 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/
Dquantized_resize_bilinear_op.cc471 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 …]
Dquantized_resize_bilinear_op_test.cc113 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()
Dconv_ops_fused_image_transform.cc195 in_y *= st.height_scale; in CalculatePerCacheLineParameters()
666 st.height_scale = 1.0f; in Compute()
/external/XNNPACK/src/
Dindirection.c352 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/
Dresize-bilinear-operator-tester.h80 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/
Dreference_ops.h1227 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/
Doptimized_ops.h4778 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/
Dv3dv_meta_copy.c1357 float height_scale, in create_image_alias() argument
1370 .height = src->extent.height * height_scale, in create_image_alias()