/external/tensorflow/tensorflow/core/kernels/ |
D | resize_nearest_neighbor_op_gpu.cu.cc | 39 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborNHWC() argument 58 floorf((static_cast<float>(out_x) + 0.5f) * width_scale)), in ResizeNearestNeighborNHWC() 70 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborNHWC() argument 87 min((align_corners) ? static_cast<int>(roundf(out_x * width_scale)) in LegacyResizeNearestNeighborNHWC() 88 : static_cast<int>(floorf(out_x * width_scale)), in LegacyResizeNearestNeighborNHWC() 99 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborBackwardNHWC() argument 118 floorf((static_cast<float>(in_x) + 0.5f) * width_scale)), in ResizeNearestNeighborBackwardNHWC() 130 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborBackwardNHWC() argument 147 min((align_corners) ? static_cast<int>(roundf(in_x * width_scale)) in LegacyResizeNearestNeighborBackwardNHWC() 148 : static_cast<int>(floorf(in_x * width_scale)), in LegacyResizeNearestNeighborBackwardNHWC() [all …]
|
D | resize_nearest_neighbor_op.cc | 71 st.width_scale, output_data); in Compute() 77 st.width_scale, output_data); in Compute() 85 st.width_scale, output_data); in Compute() 91 st.width_scale, output_data); in Compute() 134 const float height_scale, const float width_scale, in operator ()() 158 ? static_cast<Eigen::Index>(roundf(scaler(x, width_scale))) in operator ()() 159 : static_cast<Eigen::Index>(floorf(scaler(x, width_scale))), in operator ()() 226 const float width_scale = in Compute() local 236 width_scale, output_data); in Compute() 242 width_scale, output_data); in Compute() [all …]
|
D | resize_bilinear_op_gpu.cu.cc | 37 float height_scale, float width_scale, in ResizeBilinearKernel() argument 58 const float in_x = (static_cast<float>(x) + 0.5f) * width_scale - 0.5f; in ResizeBilinearKernel() 90 float width_scale, int batch, int original_height, int original_width, in ResizeBilinearGradKernel() argument 111 (static_cast<float>(x) + 0.5f) * width_scale - 0.5f; in ResizeBilinearGradKernel() 152 float width_scale, int batch, in LegacyResizeBilinearKernel() argument 172 const float in_x = x * width_scale; in LegacyResizeBilinearKernel() 204 float width_scale, int batch, int original_height, int original_width, in LegacyResizeBilinearGradKernel() argument 223 const float original_x = x * width_scale; in LegacyResizeBilinearGradKernel() 268 const float height_scale, const float width_scale, in operator ()() 287 height_scale, width_scale, batch, in_height, in_width, channels, in operator ()() [all …]
|
D | resize_bilinear_op.cc | 61 st.width_scale, half_pixel_centers_, output_data); in Compute() 213 const float height_scale, const float width_scale, in operator ()() 237 width_scale, xs.data()); in operator ()() 244 width_scale, xs.data()); in operator ()() 284 st.width_scale, half_pixel_centers_, output_grad); in Compute() 300 const float height_scale, const float width_scale, in ResizeGradCore() 330 const float in_x = scaler(x, width_scale); in ResizeGradCore() 354 const float height_scale, const float width_scale, in operator ()() 359 width_scale, output_grad); in operator ()() 362 width_scale, output_grad); in operator ()()
|
D | resize_area_op_test.cc | 74 const float width_scale = in_width / static_cast<float>(out_width); in ResizeAreaBaseline() local 99 float scale = 1.0 / (height_scale * width_scale); in ResizeAreaBaseline() 110 const float in_x = x * width_scale; in ResizeAreaBaseline() 111 const float in_x1 = (x + 1) * width_scale; in ResizeAreaBaseline() 124 ? (j + 1 > in_x1 ? width_scale : j + 1 - in_x) in ResizeAreaBaseline()
|
D | image_resizer_state.h | 117 width_scale = CalculateResizeScale(in_width, out_width, align_corners_); in ValidateAndCalculateOutputSize() 127 ceilf((out_width - 1) * width_scale) <= static_cast<float>(INT_MAX), in ValidateAndCalculateOutputSize() 150 float width_scale; member 202 width_scale = in ValidateAndCreateOutput() 219 float width_scale; member
|
D | resize_area_op.cc | 164 const float in_x = x * st.width_scale; in Compute() 165 const float in_x1 = (x + 1) * st.width_scale; in Compute() 172 v < in_x ? (v + 1 > in_x1 ? st.width_scale : v + 1 - in_x) in Compute() 179 v < in_x ? (v + 1 > in_x1 ? st.width_scale : v + 1 - in_x) in Compute() 221 float scale = 1.0 / (st.height_scale * st.width_scale); in ComputeLoop()
|
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 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 | 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() 161 const float width_scale = in CropAndResizeBackpropImageKernel() local 172 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeBackpropImageKernel() 263 const float width_scale = (crop_width > 1) ? (x2 - x1) * width_ratio : 0; in CropAndResizeBackpropBoxesKernel() local 273 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeBackpropBoxesKernel()
|
D | crop_and_resize_op.cc | 235 const float width_scale = in operator ()() local 258 ? x1 * (image_width - 1) + x * width_scale in operator ()() 288 ? x1 * (image_width - 1) + x * width_scale in operator ()() 459 const float width_scale = in operator ()() local 476 ? x1 * (image_width - 1) + x * width_scale in operator ()() 642 const float width_scale = (crop_width > 1) ? (x2 - x1) * width_ratio : 0; in operator ()() local 657 ? x1 * (image_width - 1) + x * width_scale in operator ()()
|
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 | resize_bilinear_op_test.cc | 82 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBilinearBaseline() local 98 ? (static_cast<float>(x) + 0.5f) * width_scale - 0.5f in ResizeBilinearBaseline() 99 : x * width_scale; in ResizeBilinearBaseline()
|
D | resize_bicubic_op.cc | 215 resizer_state.width_scale, x, resizer_state.in_width, &(*x_wais)[x]); in ComputeXWeightsAndIndices() 223 resizer_state.width_scale, x, resizer_state.in_width, &(*x_wais)[x]); in ComputeXWeightsAndIndices() 244 GetWeightsAndIndices<HalfPixelScaler, true>(resizer_state.width_scale, x, in ComputeGradientXWeightsAndIndices() 254 GetWeightsAndIndices<LegacyScaler, false>(resizer_state.width_scale, x, in ComputeGradientXWeightsAndIndices()
|
D | resize_bicubic_op_test.cc | 125 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBicubicBaseline() local 137 GetWeightsAndIndices(width_scale, x, in_width, &x_weights, in ResizeBicubicBaseline()
|
D | conv_ops_fused_image_transform.cc | 243 in_x *= st.width_scale; in CalculatePerCachePixelParameters() 666 st.width_scale = 1.0f; in Compute()
|
/external/tensorflow/tensorflow/contrib/pi_examples/label_image/ |
D | label_image.cc | 164 const float width_scale = static_cast<float>(image_width) / wanted_width; in ReadTensorFromImageFile() local 176 const float in_x = x * width_scale; in ReadTensorFromImageFile()
|
/external/tensorflow/tensorflow/contrib/pi_examples/camera/ |
D | camera.cc | 353 const float width_scale = static_cast<float>(image_width) / wanted_width; in TensorFromFrame() local 365 const float in_x = x * width_scale; in TensorFromFrame()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 5586 float width_scale, const RuntimeShape& input_shape, const float* input_data, in ResizeBilinearGeneric() argument 5598 float input_x = x * width_scale; in ResizeBilinearGeneric() 5634 float width_scale, const RuntimeShape& input_shape, const T* input_data, in ResizeBilinearGenericSmallChannel() argument 5643 float input_x = x * width_scale; in ResizeBilinearGenericSmallChannel() 5700 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 5705 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 5710 width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 5746 float width_scale = in ResizeBilinear() local 5753 height_scale, width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 6399 int32 width_scale = (input_width << 16) / output_width + 1; in ResizeNearestNeighbor() local [all …]
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 5911 float width_scale, const RuntimeShape& input_shape, const float* input_data, in ResizeBilinearGeneric() argument 5923 float input_x = x * width_scale; in ResizeBilinearGeneric() 5959 float width_scale, const RuntimeShape& input_shape, const T* input_data, in ResizeBilinearGenericSmallChannel() argument 5971 float input_x = x * width_scale; in ResizeBilinearGenericSmallChannel() 6028 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 6033 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 6038 width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 6074 float width_scale = in ResizeBilinear() local 6081 height_scale, width_scale, input_shape, input_data, output_shape, in ResizeBilinear()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | reference_ops.h | 3040 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 3045 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 3054 float input_x = x * width_scale; in ResizeBilinear() 4575 const float width_scale = static_cast<float>(input_width) / output_width; in ResizeNearestNeighbor() local 4589 int32 in_x = std::min(static_cast<int32>(std::floor(x * width_scale)), in ResizeNearestNeighbor()
|