/external/tensorflow/tensorflow/core/util/ |
D | image_resizer_state.h | 72 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/ |
D | image_resize_ops.h | 30 bool half_pixel_centers_ = true; variable 42 bool half_pixel_centers_ = true; variable 54 bool half_pixel_centers_ = true; variable
|
D | image_resize_ops.cc | 591 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/ |
D | resize_bilinear_op.cc | 49 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
|
D | resize_nearest_neighbor_op.cc | 45 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
|
D | resize_bilinear_op_test.cc | 42 : 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()
|
D | resize_bicubic_op.cc | 556 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
|
D | resize_nearest_neighbor_op_test.cc | 41 : 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/ |
D | resize_bilinear_tester.h | 91 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/ |
D | image_resize_ops.cc | 36 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/ |
D | quantized_resize_bilinear_op.cc | 699 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
|