/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 53 floorf((static_cast<float>(out_y) + 0.5f) * height_scale)), in ResizeNearestNeighborNHWC() 70 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborNHWC() argument 83 min((align_corners) ? static_cast<int>(roundf(out_y * height_scale)) in LegacyResizeNearestNeighborNHWC() 84 : static_cast<int>(floorf(out_y * height_scale)), in LegacyResizeNearestNeighborNHWC() 99 const int out_width, const float height_scale, const float width_scale, in ResizeNearestNeighborBackwardNHWC() argument 113 floorf((static_cast<float>(in_y) + 0.5f) * height_scale)), in ResizeNearestNeighborBackwardNHWC() 130 const int out_width, const float height_scale, const float width_scale, in LegacyResizeNearestNeighborBackwardNHWC() argument 143 min((align_corners) ? static_cast<int>(roundf(in_y * height_scale)) in LegacyResizeNearestNeighborBackwardNHWC() 144 : static_cast<int>(floorf(in_y * height_scale)), in LegacyResizeNearestNeighborBackwardNHWC() [all …]
|
D | resize_nearest_neighbor_op.cc | 70 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 76 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 84 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 90 context->eigen_device<Device>(), input_data, st.height_scale, in Compute() 134 const float height_scale, const float width_scale, in operator ()() 149 ? static_cast<Eigen::Index>(roundf(scaler(y, height_scale))) in operator ()() 150 : static_cast<Eigen::Index>(floorf(scaler(y, height_scale))), in operator ()() 224 const float height_scale = in Compute() local 235 context->eigen_device<Device>(), input_data, height_scale, in Compute() 241 context->eigen_device<Device>(), input_data, height_scale, in Compute() [all …]
|
D | resize_bilinear_op_gpu.cu.cc | 37 float height_scale, float width_scale, in ResizeBilinearKernel() argument 51 const float in_y = (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearKernel() 89 const int32 nthreads, const float* input_grad, float height_scale, in ResizeBilinearGradKernel() argument 103 (static_cast<float>(y) + 0.5f) * height_scale - 0.5f; in ResizeBilinearGradKernel() 151 const T* images, float height_scale, in LegacyResizeBilinearKernel() argument 166 const float in_y = y * height_scale; in LegacyResizeBilinearKernel() 203 const int32 nthreads, const float* input_grad, float height_scale, in LegacyResizeBilinearGradKernel() argument 216 const float original_y = y * height_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 | 60 context->eigen_device<Device>(), image_data, st.height_scale, in Compute() 213 const float height_scale, const float width_scale, in operator ()() 235 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() 321 const float in_y = scaler(y, height_scale); in ResizeGradCore() 354 const float height_scale, const float width_scale, in operator ()() 358 return ResizeGradCore(HalfPixelScaler(), input_grad, height_scale, in operator ()() 361 return ResizeGradCore(LegacyScaler(), input_grad, height_scale, in operator ()()
|
D | resize_area_op_test.cc | 73 const float height_scale = in_height / static_cast<float>(out_height); in ResizeAreaBaseline() local 99 float scale = 1.0 / (height_scale * width_scale); in ResizeAreaBaseline() 102 const float in_y = y * height_scale; in ResizeAreaBaseline() 103 const float in_y1 = (y + 1) * height_scale; in ResizeAreaBaseline() 120 ? (i + 1 > in_y1 ? height_scale : i + 1 - in_y) in ResizeAreaBaseline()
|
D | image_resizer_state.h | 116 height_scale = CalculateResizeScale(in_height, out_height, align_corners_); in ValidateAndCalculateOutputSize() 121 ceilf((out_height - 1) * height_scale) <= in ValidateAndCalculateOutputSize() 149 float height_scale; member 200 height_scale = in ValidateAndCreateOutput() 218 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() 158 const float height_scale = in CropAndResizeBackpropImageKernel() local 165 ? y1 * (image_height - 1) + y * height_scale in CropAndResizeBackpropImageKernel() 262 const float height_scale = (crop_height > 1) ? (y2 - y1) * height_ratio : 0; in CropAndResizeBackpropBoxesKernel() local 266 ? 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 | crop_and_resize_op.cc | 231 const float height_scale = in operator ()() local 241 ? y1 * (image_height - 1) + y * height_scale in operator ()() 456 const float height_scale = in operator ()() local 465 ? y1 * (image_height - 1) + y * height_scale in operator ()() 640 const float height_scale = in operator ()() local 646 ? y1 * (image_height - 1) + y * height_scale in operator ()()
|
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 | resize_bilinear_op_test.cc | 81 const float height_scale = in_height / static_cast<float>(out_height); in ResizeBilinearBaseline() local 88 ? (static_cast<float>(y) + 0.5f) * height_scale - 0.5f in ResizeBilinearBaseline() 89 : y * height_scale; in ResizeBilinearBaseline()
|
D | resize_bicubic_op_test.cc | 124 const float height_scale = in_height / static_cast<float>(out_height); in ResizeBicubicBaseline() local 132 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/tensorflow/tensorflow/contrib/pi_examples/label_image/ |
D | label_image.cc | 165 const float height_scale = static_cast<float>(image_height) / wanted_height; in ReadTensorFromImageFile() local 167 const float in_y = y * height_scale; in ReadTensorFromImageFile()
|
/external/tensorflow/tensorflow/contrib/pi_examples/camera/ |
D | camera.cc | 354 const float height_scale = static_cast<float>(image_height) / wanted_height; in TensorFromFrame() local 356 const float in_y = y * height_scale; in TensorFromFrame()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 5585 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGeneric() argument 5594 float input_y = y * height_scale; in ResizeBilinearGeneric() 5633 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGenericSmallChannel() argument 5639 float input_y = y * height_scale; in ResizeBilinearGenericSmallChannel() 5699 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 5702 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 5709 output_height, output_width, height_scale, in ResizeBilinear() 5741 float height_scale = in ResizeBilinear() local 5753 height_scale, width_scale, input_shape, input_data, output_shape, in ResizeBilinear() 6398 int32 height_scale = (input_height << 16) / output_height + 1; in ResizeNearestNeighbor() local [all …]
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 5910 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGeneric() argument 5919 float input_y = y * height_scale; in ResizeBilinearGeneric() 5958 int32 output_height, int32 output_width, float height_scale, in ResizeBilinearGenericSmallChannel() argument 5967 float input_y = y * height_scale; in ResizeBilinearGenericSmallChannel() 6027 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 6030 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 6037 output_height, output_width, height_scale, in ResizeBilinear() 6069 float height_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 | 3039 float height_scale = static_cast<float>(input_height) / output_height; in ResizeBilinear() local 3042 height_scale = static_cast<float>(input_height - 1) / (output_height - 1); in ResizeBilinear() 3050 float input_y = y * height_scale; in ResizeBilinear() 4574 const float height_scale = static_cast<float>(input_height) / output_height; in ResizeNearestNeighbor() local 4585 int32 in_y = std::min(static_cast<int32>(std::floor(y * height_scale)), in ResizeNearestNeighbor()
|