/external/tensorflow/tensorflow/core/kernels/ |
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() 135 const float height_scale, const float width_scale, in operator ()() 153 ? static_cast<Eigen::Index>(roundf(scaler(y, height_scale))) in operator ()() 154 : static_cast<Eigen::Index>(floorf(scaler(y, height_scale))), in operator ()() 180 ? static_cast<Eigen::Index>(roundf(scaler(y, height_scale))) in operator ()() 181 : static_cast<Eigen::Index>(floorf(scaler(y, height_scale))), in operator ()() 263 const float height_scale = in Compute() local [all …]
|
D | resize_bilinear_op_gpu.cu.cc | 37 float height_scale, float width_scale, int batch, int in_height, in ResizeBilinearKernel_faster() argument 51 const float in_y = (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearKernel_faster() 117 const int32 nthreads, const T* __restrict__ images, float height_scale, in ResizeBilinearKernel() argument 130 const float in_y = (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearKernel() 169 float height_scale, float width_scale, in ResizeBilinearGradKernel() argument 185 (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearGradKernel() 233 const int32 nthreads, const T* __restrict__ images, float height_scale, in LegacyResizeBilinearKernel() argument 246 const float in_y = y * height_scale; in LegacyResizeBilinearKernel() 284 float height_scale, float width_scale, int batch, int original_height, in LegacyResizeBilinearGradKernel() argument 297 const float original_y = y * height_scale; in LegacyResizeBilinearGradKernel() [all …]
|
D | resize_bilinear_op.cc | 60 context->eigen_device<Device>(), image_data, st.height_scale, in Compute() 213 const float height_scale, const float width_scale, in operator ()() 236 height_scale, ys.data()); in operator ()() 242 height_scale, ys.data()); in operator ()() 283 context->eigen_device<Device>(), input_grad, st.height_scale, in Compute() 300 const float height_scale, const float width_scale, in ResizeGradCore() 324 const float in_y = scaler(y, height_scale); in ResizeGradCore() 357 const float height_scale, const float width_scale, in operator ()() 361 return ResizeGradCore(HalfPixelScaler(), input_grad, height_scale, in operator ()() 364 return ResizeGradCore(LegacyScaler(), input_grad, height_scale, in operator ()()
|
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 | 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 202 height_scale = in ValidateAndCreateOutput() 220 float height_scale; member
|
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 | 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 | 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_area_op.cc | 221 float scale = 1.0 / (st.height_scale * st.width_scale); in ComputeLoop() 225 const float in_y = y * st.height_scale; in ComputeLoop() 226 const float in_y1 = (y + 1) * st.height_scale; in ComputeLoop() 236 scale_y = (i + 1 > in_y1 ? st.height_scale : i + 1 - in_y); in ComputeLoop()
|
D | resize_bicubic_op.cc | 315 resizer_state.height_scale, y, resizer_state.in_height, &y_wai); in interpolate_with_caching() 318 resizer_state.height_scale, y, resizer_state.in_height, &y_wai); in interpolate_with_caching() 479 const float height_scale = resizer_state.height_scale; in ResizeBicubicGrad() local 493 GetWeightsAndIndices<HalfPixelScaler, true>(height_scale, y, in ResizeBicubicGrad() 496 GetWeightsAndIndices<LegacyScaler, false>(height_scale, y, in ResizeBicubicGrad()
|
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 | crop_and_resize_op.cc | 237 const float height_scale = in operator ()() local 247 ? y1 * (image_height - 1) + y * height_scale in operator ()() 463 const float height_scale = in operator ()() local 473 ? y1 * (image_height - 1) + y * height_scale in operator ()() 670 const float height_scale = in operator ()() local 676 ? y1 * (image_height - 1) + y * height_scale in operator ()()
|
D | resize_bilinear_op_test.cc | 93 const float height_scale = in_height / static_cast<float>(out_height); in ResizeBilinearBaseline() local 100 ? (static_cast<float>(y) + 0.5f) * height_scale - 0.5f in ResizeBilinearBaseline() 101 : 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()
|
D | conv_ops_fused_image_transform.cc | 194 in_y *= st.height_scale; in CalculatePerCacheLineParameters() 665 st.height_scale = 1.0f; in Compute()
|
/external/XNNPACK/src/ |
D | indirection.c | 316 const float height_scale = in xnn_indirection_init_resize_bilinear2d_f32() local 323 const float input_y = (float) (int32_t) output_y * height_scale; in xnn_indirection_init_resize_bilinear2d_f32() 353 const float height_offset = 0.5f * height_scale - 0.5f; in xnn_indirection_init_resize_bilinear2d_f32() 356 float input_y = (float) (int32_t) output_y * height_scale + height_offset; in xnn_indirection_init_resize_bilinear2d_f32()
|
/external/XNNPACK/test/ |
D | resize-bilinear-operator-tester.h | 80 inline float height_scale() const { in height_scale() function 239 const float input_y = (float(output_y) + offset) * height_scale() - offset; in TestF32()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | reference_ops.h | 2024 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 2027 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 2037 ComputeInterpolationValues(y, height_scale, op_params.half_pixel_centers, in ResizeBilinear() 2777 const float height_scale = static_cast<float>(input_height) / output_height; in ResizeNearestNeighbor() local 2788 int32 in_y = std::min(static_cast<int32>(std::floor(y * height_scale)), in ResizeNearestNeighbor()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 4716 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGeneric() argument 4729 y, height_scale, half_pixel_centers, input_height, &input_y, &y0, in ResizeBilinearGeneric() 4769 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGenericSmallChannel() argument 4779 y, height_scale, half_pixel_centers, input_height, &input_y, &y0, in ResizeBilinearGenericSmallChannel() 4842 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 4845 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 4852 output_height, output_width, height_scale, in ResizeBilinear() 4886 float height_scale = in ResizeBilinear() local 4898 height_scale, width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 5851 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()
|