/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 | 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 …]
|
/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/core/kernels/image/ |
D | resize_nearest_neighbor_op.cc | 107 template <bool half_pixel_centers> 130 template <bool half_pixel_centers, bool align_corners> 133 typename BoolToScaler<half_pixel_centers>::Scaler scaler; in compute_indices() 139 if (half_pixel_centers) { in compute_indices() 147 template <typename T, bool half_pixel_centers, bool align_corners> 157 compute_indices<half_pixel_centers, align_corners>( in ResizeNearestNeighborGenerator() 159 compute_indices<half_pixel_centers, align_corners>( in ResizeNearestNeighborGenerator() 183 template <typename T, bool half_pixel_centers, bool align_corners> 184 struct ResizeNearestNeighbor<CPUDevice, T, half_pixel_centers, align_corners> { 190 generator::ResizeNearestNeighborGenerator<T, half_pixel_centers, in operator ()() [all …]
|
D | resize_bilinear_op.cc | 85 template <bool half_pixel_centers> 90 typedef typename std::conditional<half_pixel_centers, HalfPixelScaler, in compute_interpolation_weights() 139 template <typename T, bool half_pixel_centers> 149 compute_interpolation_weights<half_pixel_centers>( in ResizeBilinearGenerator() 151 compute_interpolation_weights<half_pixel_centers>(output_width, input_width, in ResizeBilinearGenerator() 184 bool half_pixel_centers, in operator ()() 198 if (half_pixel_centers) { in operator ()() 331 const bool half_pixel_centers, in operator ()() 333 if (half_pixel_centers) { in operator ()()
|
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> { 181 half_pixel_centers ? ResizeNearestNeighborNHWC<T> in operator ()() 203 template <typename T, bool half_pixel_centers, bool align_corners> 204 struct ResizeNearestNeighborGrad<GPUDevice, T, half_pixel_centers, 234 half_pixel_centers in operator ()()
|
D | resize_bilinear_op.h | 30 const bool half_pixel_centers, 39 const bool half_pixel_centers,
|
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 | resize_bicubic_op.cc | 210 const bool half_pixel_centers, in ComputeXWeightsAndIndices() argument 213 if (half_pixel_centers) { in ComputeXWeightsAndIndices() 241 const bool half_pixel_centers, std::vector<WeightsAndIndices>* x_wais) { in ComputeGradientXWeightsAndIndices() argument 243 if (half_pixel_centers) { in ComputeGradientXWeightsAndIndices() 296 const ImageResizerState& resizer_state, const bool half_pixel_centers, in interpolate_with_caching() argument 299 ComputeXWeightsAndIndices(resizer_state, half_pixel_centers, &x_wais); in interpolate_with_caching() 314 if (half_pixel_centers) { in interpolate_with_caching() 475 const bool half_pixel_centers, in ResizeBicubicGrad() argument 489 ComputeGradientXWeightsAndIndices(resizer_state, half_pixel_centers, &x_wais); in ResizeBicubicGrad() 493 if (half_pixel_centers) { in ResizeBicubicGrad()
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_grad_deterministic_test.py | 70 def testDeterministicGradients(self, align_corners, half_pixel_centers, argument 78 hash(align_corners) % 256 + hash(half_pixel_centers) % 256 + 96 half_pixel_centers=half_pixel_centers) 112 half_pixel_centers=half_pixel_centers)
|
D | image_grad_test_base.py | 129 for align_corners, half_pixel_centers in options: 131 yield in_shape, out_shape, align_corners, half_pixel_centers 137 half_pixel_centers=False, argument 151 half_pixel_centers=half_pixel_centers) 194 for in_shape, out_shape, align_corners, half_pixel_centers in \ 197 half_pixel_centers) 238 half_pixel_centers, dtype): argument 245 half_pixel_centers, 276 half_pixel_centers=False,
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | resize_nearest_neighbor.h | 31 const bool half_pixel_centers) { in GetNearestNeighbor() argument 36 const float offset = half_pixel_centers ? 0.5f : 0.0f; in GetNearestNeighbor() 42 if (half_pixel_centers) { in GetNearestNeighbor() 83 op_params.half_pixel_centers); in ResizeNearestNeighbor() 88 op_params.half_pixel_centers); in ResizeNearestNeighbor()
|
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/ |
D | resize_nearest_neighbor_builder.cc | 60 int half_pixel_centers = params->half_pixel_centers ? 1 : 0; in PopulateSubGraph() local 62 kScalarShape, reinterpret_cast<char*>(&half_pixel_centers), in PopulateSubGraph() 63 sizeof(half_pixel_centers)); in PopulateSubGraph()
|
D | resize_bilinear_builder.cc | 60 int half_pixel_centers = params->half_pixel_centers ? 1 : 0; in PopulateSubGraph() local 62 kScalarShape, reinterpret_cast<char*>(&half_pixel_centers), in PopulateSubGraph() 63 sizeof(half_pixel_centers)); in PopulateSubGraph()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | resize_bilinear_test.cc | 204 op_params.half_pixel_centers = false; in TEST() 218 op_params.half_pixel_centers = true; in TEST() 248 op_params.half_pixel_centers = false; in TEST() 264 op_params.half_pixel_centers = true; in TEST() 299 op_params.half_pixel_centers = false; in TestResizeBilinearHalfPixelCenters_2x2to4x6() 324 op_params.half_pixel_centers = true; in TestResizeBilinearHalfPixelCenters_2x2to4x6()
|
/external/tensorflow/tensorflow/core/util/ |
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()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/ |
D | resize_test_util.cc | 101 attr.half_pixel_centers = false; in ResizeBilinearWithoutHalfPixelTest() 133 attr.half_pixel_centers = true; in ResizeBilinearWithHalfPixelTest() 163 attr.half_pixel_centers = false; in ResizeNearestTest() 195 attr.half_pixel_centers = false; in ResizeNearestAlignCornersTest() 227 attr.half_pixel_centers = true; in ResizeNearestHalfPixelCentersTest()
|
/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | resize_bilinear_tester.h | 90 ResizeBilinearTester& HalfPixelCenters(bool half_pixel_centers) { in HalfPixelCenters() argument 91 half_pixel_centers_ = half_pixel_centers; in HalfPixelCenters()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/ |
D | resize_test.cc | 119 attr.half_pixel_centers = false; in TEST() 145 attr.half_pixel_centers = true; in TEST() 196 attr.half_pixel_centers = false; in TEST() 222 attr.half_pixel_centers = true; in TEST()
|
D | resize.cc | 78 if (attr.half_pixel_centers) { in GenerateCode() 102 if (attr.half_pixel_centers) { in GenerateCode()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | resize_bilinear.cc | 89 if (params->half_pixel_centers && params->align_corners) { in Prepare() 120 op_params.half_pixel_centers = params->half_pixel_centers; \ in Eval()
|
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/ |
D | resize_test.cc | 26 bool half_pixel_centers = false) { in ResizeOpModel() argument 35 /*half_pixel_centers*/ half_pixel_centers) in ResizeOpModel() 41 /**half_pixel_centers**/ half_pixel_centers) in ResizeOpModel()
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/ |
D | ResizeNearestNeighborGrad.pbtxt | 73 name: "half_pixel_centers" 117 name: "half_pixel_centers"
|
D | ResizeNearestNeighbor.pbtxt | 117 name: "half_pixel_centers" 164 name: "half_pixel_centers"
|