Home
last modified time | relevance | path

Searched refs:half_pixel_centers (Results 1 – 25 of 56) sorted by relevance

123

/external/tensorflow/tensorflow/core/kernels/
Dquantized_resize_bilinear_op_test.cc69 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 …]
Dresize_nearest_neighbor_op.cc107 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 …]
Dresize_nearest_neighbor_op_gpu.cu.cc159 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 ()()
Dresize_bilinear_op.h30 const bool half_pixel_centers,
39 const bool half_pixel_centers,
Dquantized_resize_bilinear_op.cc76 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 …]
Dresize_nearest_neighbor_op.h25 template <typename Device, typename T, bool half_pixel_centers,
33 template <typename Device, typename T, bool half_pixel_centers,
Dimage_resizer_state.h70 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()
Dresize_bicubic_op.cc209 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()
Dresize_bilinear_op.cc214 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 ()()
Dresize_bilinear_op_gpu.cu.cc350 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/
Dimage_grad_test.cc55 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 …]
Dimage_grad.cc32 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/
Dresize_bilinear_test.cc206 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/
Dresize_bilinear.cc80 if (params->half_pixel_centers && params->align_corners) { in Prepare()
107 op_params.half_pixel_centers = params->half_pixel_centers; \ in Eval()
Dresize_bilinear_test.cc37 bool half_pixel_centers = false) { in ResizeBilinearOpModel() argument
50 /**half_pixel_centers**/ half_pixel_centers) in ResizeBilinearOpModel()
/external/tensorflow/tensorflow/lite/tools/versioning/
Dop_version.cc283 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()
Dop_version.h50 bool half_pixel_centers; member
/external/tensorflow/tensorflow/python/ops/
Dimage_grad.py49 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"))
Dimage_ops_impl.py1437 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/
DResizeBicubicGrad.pbtxt65 name: "half_pixel_centers"
DResizeNearestNeighborGrad.pbtxt73 name: "half_pixel_centers"
DQuantizedResizeBilinear.pbtxt99 name: "half_pixel_centers"
DResizeBilinearGrad.pbtxt102 name: "half_pixel_centers"
/external/tensorflow/tensorflow/lite/testing/op_tests/
Dresize_bilinear.py76 half_pixel_centers=parameters["half_pixel_centers"])
/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers_impl.h63 params->half_pixel_centers = false; in resize()

123