/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 56 min((align_corners) ? static_cast<int>(roundf(out_x * width_scale)) in ResizeNearestNeighborNHWC() 57 : static_cast<int>(floorf(out_x * width_scale)), in ResizeNearestNeighborNHWC() 68 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborBackwardNHWC() argument 85 min((align_corners) ? static_cast<int>(roundf(in_x * width_scale)) in ResizeNearestNeighborBackwardNHWC() 86 : static_cast<int>(floorf(in_x * width_scale)), in ResizeNearestNeighborBackwardNHWC() 101 const float height_scale, const float width_scale, in operator ()() 118 out_height, out_width, height_scale, width_scale, output.data()); in operator ()() 135 const float height_scale, const float width_scale, in operator ()() 160 height_scale, width_scale, output.data()); in operator ()()
|
D | resize_nearest_neighbor_op.cc | 67 st.width_scale, output_data); in Compute() 72 st.width_scale, output_data); in Compute() 89 const float height_scale, const float width_scale, in operator ()() 107 (align_corners) ? static_cast<int64>(roundf(x * width_scale)) in operator ()() 108 : static_cast<int64>(floorf(x * width_scale)), in operator ()() 170 const float width_scale = in Compute() local 178 width_scale, output_data); in Compute() 183 width_scale, output_data); in Compute() 200 const float height_scale, const float width_scale, in operator ()() 219 (align_corners) ? static_cast<int64>(roundf(x * width_scale)) in operator ()() [all …]
|
D | resize_bilinear_op_gpu.cu.cc | 37 float height_scale, float width_scale, in ResizeBilinearKernel() argument 57 const float in_x = x * width_scale; in ResizeBilinearKernel() 89 float width_scale, int batch, int original_height, int original_width, in ResizeBilinearGradKernel() argument 108 const float original_x = x * width_scale; in ResizeBilinearGradKernel() 153 const float height_scale, const float width_scale, in operator ()() 170 width_scale, batch, in_height, in_width, channels, out_height, in operator ()() 180 const float height_scale, const float width_scale, in operator ()() 206 width_scale, batch, original_height, original_width, channels, in operator ()()
|
D | image_resizer_state.h | 92 width_scale = CalculateResizeScale(in_width, out_width, align_corners_); in ValidateAndCalculateOutputSize() 102 ceilf((out_width - 1) * width_scale) <= static_cast<float>(INT_MAX), in ValidateAndCalculateOutputSize() 125 float width_scale; member 168 width_scale = in ValidateAndCreateOutput() 185 float width_scale; member
|
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 | resize_area_op.cc | 160 const float in_x = x * st.width_scale; in Compute() 161 const float in_x1 = (x + 1) * st.width_scale; in Compute() 168 v < in_x ? (v + 1 > in_x1 ? st.width_scale : v + 1 - in_x) in Compute() 175 v < in_x ? (v + 1 > in_x1 ? st.width_scale : v + 1 - in_x) in Compute() 217 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, 37 const float height_scale, const float width_scale,
|
D | resize_nearest_neighbor_op.h | 28 const float height_scale, const float width_scale, 36 const float height_scale, const float width_scale,
|
D | resize_bilinear_op.cc | 59 st.width_scale, output_data); in Compute() 205 const float height_scale, const float width_scale, in operator ()() 227 compute_interpolation_weights(out_width, in_width, width_scale, xs.data()); in operator ()() 265 st.width_scale, output_grad); in Compute() 278 const float height_scale, const float width_scale, in operator ()() 306 const float in_x = x * width_scale; in operator ()()
|
D | crop_and_resize_op_gpu.cu.cc | 64 const float width_scale = in CropAndResizeKernel() local 76 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeKernel() 146 const float width_scale = in CropAndResizeBackpropImageKernel() local 157 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeBackpropImageKernel() 237 const float width_scale = (crop_width > 1) ? (x2 - x1) * width_ratio : 0; in CropAndResizeBackpropBoxesKernel() local 247 ? x1 * (image_width - 1) + x * width_scale in CropAndResizeBackpropBoxesKernel()
|
D | quantized_resize_bilinear_op.cc | 465 const float height_scale, const float width_scale, in ResizeImageReference() argument 471 BuildLerpCache<float>(out_width, in_width, width_scale, channels, 0); in ResizeImageReference() 513 const float height_scale, const float width_scale, in ResizeImage() argument 517 out_width, channels, height_scale, width_scale, in ResizeImage() 526 const float height_scale, const float width_scale, in ResizeImage() argument 536 out_width, in_width, width_scale, channels, RESOLUTION); in ResizeImage() 587 const float height_scale, const float width_scale, in ResizeImage() argument 597 out_width, in_width, width_scale, channels, RESOLUTION); in ResizeImage() 647 const float height_scale, const float width_scale, in ResizeBilinear() argument 668 out_width, channels, height_scale, width_scale, in ResizeBilinear() [all …]
|
D | crop_and_resize_op.cc | 235 const float width_scale = in operator ()() local 257 ? x1 * (image_width - 1) + x * width_scale in operator ()() 430 const float width_scale = in operator ()() local 447 ? x1 * (image_width - 1) + x * width_scale in operator ()() 604 const float width_scale = (crop_width > 1) ? (x2 - x1) * width_ratio : 0; in operator ()() local 619 ? x1 * (image_width - 1) + x * width_scale in operator ()()
|
D | quantized_resize_bilinear_op_test.cc | 112 const float width_scale, const float min, in CalcReferenceResizedVal() argument 116 GetReferenceWeight(out_width, in_width, channels, x, width_scale); in CalcReferenceResizedVal() 152 const float width_scale = in CheckTensorValue() local 161 channels, height_scale, width_scale, min, max, b, x, y, c); in CheckTensorValue()
|
D | resize_bicubic_op_test.cc | 124 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBicubicBaseline() local 136 GetWeightsAndIndices(width_scale, x, in_width, &x_weights, in ResizeBicubicBaseline()
|
D | resize_bilinear_op_test.cc | 79 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBilinearBaseline() local 89 const float in_x = x * width_scale; in ResizeBilinearBaseline()
|
D | resize_bicubic_op.cc | 168 GetWeightsAndIndices(resizer_state.width_scale, x, resizer_state.in_width, in ComputeXWeightsAndIndices() 188 GetWeightsAndIndices(resizer_state.width_scale, x, in ComputeGradientXWeightsAndIndices()
|
D | conv_ops_fused.cc | 242 in_x *= st.width_scale; in CalculatePerCachePixelParameters() 665 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/contrib/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 4160 float width_scale) { in ResizeBilinearGeneric() argument 4171 float input_x = x * width_scale; in ResizeBilinearGeneric() 4228 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 4233 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 4239 width_scale); in ResizeBilinear()
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/reference/ |
D | reference_ops.h | 2522 float width_scale = static_cast<float>(input_width) / output_width; in ResizeBilinear() local 2527 width_scale = static_cast<float>(input_width - 1) / (output_width - 1); in ResizeBilinear() 2536 float input_x = x * width_scale; in ResizeBilinear()
|