/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_resize_bilinear_op_test.cc | 69 const bool half_pixel_centers, const int64 out_size, const int64 in_size, in GetReferenceWeight() argument 71 const float in = half_pixel_centers in GetReferenceWeight() 109 T CalcReferenceResizedVal(const T* image_data, const bool half_pixel_centers, in CalcReferenceResizedVal() argument 117 half_pixel_centers, out_width, in_width, channels, x, width_scale); in CalcReferenceResizedVal() 119 half_pixel_centers, out_height, in_height, 1, y, height_scale); in CalcReferenceResizedVal() 148 const bool half_pixel_centers, const float min, in CheckTensorValue() argument 162 in_data, half_pixel_centers, batch_size, in_height, in_width, in CheckTensorValue() 192 const bool half_pixel_centers, in TestResizeBilinear() argument 203 ops::QuantizedResizeBilinear::HalfPixelCenters(half_pixel_centers)); in TestResizeBilinear() 299 const bool half_pixel_centers) { in RunTestResizeBilinearTwoDims() argument [all …]
|
D | resize_nearest_neighbor_op.cc | 107 template <bool half_pixel_centers> 132 template <typename T, bool half_pixel_centers, bool align_corners> 133 struct ResizeNearestNeighbor<CPUDevice, T, half_pixel_centers, align_corners> { 137 typename BoolToScaler<half_pixel_centers>::Scaler scaler; in operator ()() 156 if (half_pixel_centers) { in operator ()() 165 if (half_pixel_centers) { in operator ()() 183 if (half_pixel_centers) { in operator ()() 191 if (half_pixel_centers) { in operator ()() 313 template <typename T, bool half_pixel_centers, bool align_corners> 314 struct ResizeNearestNeighborGrad<CPUDevice, T, half_pixel_centers, [all …]
|
D | resize_nearest_neighbor_op_gpu.cu.cc | 159 template <typename T, bool half_pixel_centers, bool align_corners> 160 struct ResizeNearestNeighbor<GPUDevice, T, half_pixel_centers, align_corners> { 176 if (half_pixel_centers) { in operator ()() 205 template <typename T, bool half_pixel_centers, bool align_corners> 206 struct ResizeNearestNeighborGrad<GPUDevice, T, half_pixel_centers, 231 if (half_pixel_centers) { in operator ()()
|
D | resize_bilinear_op.h | 30 const bool half_pixel_centers, 39 const bool half_pixel_centers,
|
D | quantized_resize_bilinear_op.cc | 76 const int index_step, const int resolution, const bool half_pixel_centers) { in BuildLerpCache() argument 79 if (half_pixel_centers) { in BuildLerpCache() 473 const bool half_pixel_centers, in ResizeImageReference() argument 478 out_width, in_width, width_scale, channels, 0, half_pixel_centers); in ResizeImageReference() 480 out_height, in_height, height_scale, 1, 0, half_pixel_centers); in ResizeImageReference() 522 const bool half_pixel_centers, in ResizeImage() argument 526 in_min, in_max, half_pixel_centers, output); in ResizeImage() 536 const bool half_pixel_centers, in ResizeImage() argument 546 RESOLUTION, half_pixel_centers); in ResizeImage() 548 out_height, in_height, height_scale, 1, RESOLUTION, half_pixel_centers); in ResizeImage() [all …]
|
D | resize_nearest_neighbor_op.h | 25 template <typename Device, typename T, bool half_pixel_centers, 33 template <typename Device, typename T, bool half_pixel_centers,
|
D | image_resizer_state.h | 70 explicit ImageResizerState(bool align_corners, bool half_pixel_centers) in ImageResizerState() 72 half_pixel_centers_(half_pixel_centers) {} in ImageResizerState() 162 bool half_pixel_centers) in ImageResizerGradientState() 164 half_pixel_centers_(half_pixel_centers) {} in ImageResizerGradientState()
|
D | resize_bicubic_op.cc | 209 const bool half_pixel_centers, in ComputeXWeightsAndIndices() argument 212 if (half_pixel_centers) { in ComputeXWeightsAndIndices() 240 const bool half_pixel_centers, std::vector<WeightsAndIndices>* x_wais) { in ComputeGradientXWeightsAndIndices() argument 242 if (half_pixel_centers) { in ComputeGradientXWeightsAndIndices() 295 const ImageResizerState& resizer_state, const bool half_pixel_centers, in interpolate_with_caching() argument 298 ComputeXWeightsAndIndices(resizer_state, half_pixel_centers, &x_wais); in interpolate_with_caching() 313 if (half_pixel_centers) { in interpolate_with_caching() 474 const bool half_pixel_centers, in ResizeBicubicGrad() argument 488 ComputeGradientXWeightsAndIndices(resizer_state, half_pixel_centers, &x_wais); in ResizeBicubicGrad() 492 if (half_pixel_centers) { in ResizeBicubicGrad()
|
D | resize_bilinear_op.cc | 214 bool half_pixel_centers, in operator ()() 234 if (half_pixel_centers) { in operator ()() 358 const bool half_pixel_centers, in operator ()() 360 if (half_pixel_centers) { in operator ()()
|
D | resize_bilinear_op_gpu.cu.cc | 350 const bool half_pixel_centers, in operator ()() 370 if (half_pixel_centers) { in operator ()() 403 const bool half_pixel_centers, in operator ()() 427 if (half_pixel_centers) { in operator ()()
|
/external/tensorflow/tensorflow/cc/gradients/ |
D | image_grad_test.cc | 55 const bool align_corners, const bool half_pixel_centers, in MakeOp() argument 67 .HalfPixelCenters(half_pixel_centers)); in MakeOp() 72 .HalfPixelCenters(half_pixel_centers)); in MakeOp() 80 const bool half_pixel_centers) { in TestResizedShapeForType() argument 84 MakeOp<T>(op_type, x_data, {4, 6}, align_corners, half_pixel_centers, &x, in TestResizedShapeForType() 95 for (const bool half_pixel_centers : {true, false}) { in TestResizedShape() 97 if (half_pixel_centers && align_corners) { in TestResizedShape() 101 half_pixel_centers); in TestResizedShape() 103 half_pixel_centers); in TestResizedShape() 105 half_pixel_centers); in TestResizedShape() [all …]
|
D | image_grad.cc | 32 bool half_pixel_centers; in ResizeNearestNeighborGradHelper() local 34 &half_pixel_centers)); in ResizeNearestNeighborGradHelper() 42 .HalfPixelCenters(half_pixel_centers))); in ResizeNearestNeighborGradHelper() 54 bool half_pixel_centers; in ResizeBilinearGradHelper() local 56 &half_pixel_centers)); in ResizeBilinearGradHelper() 60 .HalfPixelCenters(half_pixel_centers))); in ResizeBilinearGradHelper() 72 bool half_pixel_centers; in ResizeBicubicGradHelper() local 74 &half_pixel_centers)); in ResizeBicubicGradHelper() 79 .HalfPixelCenters(half_pixel_centers))); in ResizeBicubicGradHelper()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | resize_bilinear_test.cc | 206 op_params.half_pixel_centers = false; in TEST() 222 op_params.half_pixel_centers = true; in TEST() 256 op_params.half_pixel_centers = false; in TEST() 275 op_params.half_pixel_centers = true; in TEST()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | resize_bilinear.cc | 80 if (params->half_pixel_centers && params->align_corners) { in Prepare() 107 op_params.half_pixel_centers = params->half_pixel_centers; \ in Eval()
|
D | resize_bilinear_test.cc | 37 bool half_pixel_centers = false) { in ResizeBilinearOpModel() argument 50 /**half_pixel_centers**/ half_pixel_centers) in ResizeBilinearOpModel()
|
/external/tensorflow/tensorflow/lite/tools/versioning/ |
D | op_version.cc | 283 if (op_sig.options.resize_bilinear.half_pixel_centers) { in GetBuiltinOperatorVersion() 424 op_sig.options.resize_bilinear.half_pixel_centers = in GetOpSignature() 425 resize_bilinear_option->half_pixel_centers(); in GetOpSignature()
|
D | op_version.h | 50 bool half_pixel_centers; member
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_grad.py | 49 half_pixel_centers=op.get_attr("half_pixel_centers")) 68 half_pixel_centers=op.get_attr("half_pixel_centers")) 112 half_pixel_centers=op.get_attr("half_pixel_centers"))
|
D | image_ops_impl.py | 1437 images_t, new_size, half_pixel_centers=True) 1440 images_t, new_size, half_pixel_centers=True) 1446 images_t, new_size, half_pixel_centers=True) 3836 half_pixel_centers=False): argument 3841 half_pixel_centers=half_pixel_centers, 3849 half_pixel_centers=False): argument 3854 half_pixel_centers=half_pixel_centers, 3862 half_pixel_centers=False): argument 3867 half_pixel_centers=half_pixel_centers,
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/ |
D | ResizeBicubicGrad.pbtxt | 65 name: "half_pixel_centers"
|
D | ResizeNearestNeighborGrad.pbtxt | 73 name: "half_pixel_centers"
|
D | QuantizedResizeBilinear.pbtxt | 99 name: "half_pixel_centers"
|
D | ResizeBilinearGrad.pbtxt | 102 name: "half_pixel_centers"
|
/external/tensorflow/tensorflow/lite/testing/op_tests/ |
D | resize_bilinear.py | 76 half_pixel_centers=parameters["half_pixel_centers"])
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | bitmap_helpers_impl.h | 63 params->half_pixel_centers = false; in resize()
|