Home
last modified time | relevance | path

Searched refs:half_pixel_centers_ (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dimage_resizer_state.h72 half_pixel_centers_(half_pixel_centers) {} in ImageResizerState()
83 !half_pixel_centers_ || (half_pixel_centers_ && !align_corners_), in ValidateAndCalculateOutputSize()
157 bool half_pixel_centers_; member
164 half_pixel_centers_(half_pixel_centers) {} in ImageResizerGradientState()
170 !half_pixel_centers_ || (half_pixel_centers_ && !align_corners_), in ValidateAndCreateOutput()
240 bool half_pixel_centers_; member
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dimage_resize_ops.h30 bool half_pixel_centers_ = true; variable
42 bool half_pixel_centers_ = true; variable
54 bool half_pixel_centers_ = true; variable
Dimage_resize_ops.cc591 OP_REQUIRES_OK(ctx, ctx->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeNearestNeighborOp()
592 OP_REQUIRES(ctx, half_pixel_centers_ == false, in ResizeNearestNeighborOp()
608 OP_REQUIRES_OK(ctx, ctx->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeBilinearOp()
610 ctx, half_pixel_centers_ == false, in ResizeBilinearOp()
625 OP_REQUIRES_OK(ctx, ctx->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeBilinearGradOp()
630 OP_REQUIRES(ctx, half_pixel_centers_ == false, in ResizeBilinearGradOp()
/external/tensorflow/tensorflow/core/kernels/image/
Dresize_bilinear_op.cc49 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeBilinearOp()
54 ImageResizerState st(align_corners_, half_pixel_centers_); in Compute()
67 st.width_scale, half_pixel_centers_, output_data); in Compute()
72 bool half_pixel_centers_; member in tensorflow::ResizeBilinearOp
218 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeBilinearOpGrad()
227 ImageResizerGradientState st(align_corners_, half_pixel_centers_); in Compute()
239 st.width_scale, half_pixel_centers_, output_grad); in Compute()
251 st.width_scale, half_pixel_centers_, output_grad.tensor<float, 4>()); in Compute()
261 bool half_pixel_centers_; member in tensorflow::ResizeBilinearOpGrad
Dresize_nearest_neighbor_op.cc45 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeNearestNeighborOp()
50 ImageResizerState st(align_corners_, half_pixel_centers_); in Compute()
66 if (half_pixel_centers_) { in Compute()
103 bool half_pixel_centers_; member in tensorflow::ResizeNearestNeighborOp
207 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeNearestNeighborOpGrad()
257 if (half_pixel_centers_) { in Compute()
296 bool half_pixel_centers_; member in tensorflow::ResizeNearestNeighborOpGrad
Dresize_bilinear_op_test.cc42 : align_corners_(false), half_pixel_centers_(false) {} in ResizeBilinearOpTestBase()
55 .Attr("half_pixel_centers", half_pixel_centers_) in SetUp()
100 half_pixel_centers_ in ResizeBilinearBaseline()
110 half_pixel_centers_ in ResizeBilinearBaseline()
166 bool half_pixel_centers_; member in tensorflow::ResizeBilinearOpTestBase
176 ResizeBilinearHalfPixelCentersOpTest() { half_pixel_centers_ = true; } in ResizeBilinearHalfPixelCentersOpTest()
557 .Attr("half_pixel_centers", half_pixel_centers_) in SetUpBenchmark()
Dresize_bicubic_op.cc556 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeBicubicOp()
561 ImageResizerState st(align_corners_, half_pixel_centers_); in Compute()
569 interpolate_with_caching<T>(input_data, st, half_pixel_centers_, in Compute()
575 bool half_pixel_centers_; member in tensorflow::ResizeBicubicOp
585 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in ResizeBicubicOpGrad()
594 ImageResizerGradientState st(align_corners_, half_pixel_centers_); in Compute()
602 ResizeBicubicGrad<T>(input_grad, st, half_pixel_centers_, output_grad); in Compute()
607 bool half_pixel_centers_; member in tensorflow::ResizeBicubicOpGrad
Dresize_nearest_neighbor_op_test.cc41 : align_corners_(false), half_pixel_centers_(half_pixel_centers) {} in ResizeNearestNeighborOpTestBase()
54 .Attr("half_pixel_centers", half_pixel_centers_) in SetUp()
59 bool half_pixel_centers_; member in tensorflow::ResizeNearestNeighborOpTestBase
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dresize_bilinear_tester.h91 half_pixel_centers_ = half_pixel_centers; in HalfPixelCenters()
95 bool HalfPixelCenters() const { return half_pixel_centers_; } in HalfPixelCenters()
109 bool half_pixel_centers_ = false; variable
/external/tensorflow/tensorflow/core/tpu/kernels/
Dimage_resize_ops.cc36 ctx->GetAttr("half_pixel_centers", &half_pixel_centers_)); in TpuCustomResizeOp()
51 return absl::StrCat("\"", align_corners_, half_pixel_centers_, "\""); in OpaqueField()
96 bool half_pixel_centers_; member in tensorflow::TpuCustomResizeOp
/external/tensorflow/tensorflow/core/kernels/
Dquantized_resize_bilinear_op.cc699 context, context->GetAttr("half_pixel_centers", &half_pixel_centers_)); in QuantizedResizeBilinearOp()
719 in_max, half_pixel_centers_, &output_data); in Compute()
731 bool half_pixel_centers_; member in tensorflow::QuantizedResizeBilinearOp