Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::ResizeBilinear::Attrs
#include <image_ops.h>
Optional attribute setters for ResizeBilinear.
Summary
Public functions
|
AlignCorners(bool x)
|
If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels.
|
HalfPixelCenters(bool x)
|
Defaults to false.
|
Public attributes
align_corners_
bool tensorflow::ops::ResizeBilinear::Attrs::align_corners_ = false
half_pixel_centers_
bool tensorflow::ops::ResizeBilinear::Attrs::half_pixel_centers_ = false
Public functions
AlignCorners
TF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeBilinear::Attrs::AlignCorners(
bool x
)
If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels.
Defaults to false.
Defaults to false
HalfPixelCenters
TF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeBilinear::Attrs::HalfPixelCenters(
bool x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::ResizeBilinear::Attrs Struct Reference\n\ntensorflow::ops::ResizeBilinear::Attrs\n======================================\n\n`#include \u003cimage_ops.h\u003e`\n\nOptional attribute setters for [ResizeBilinear](/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------------|--------|\n| [align_corners_](#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs_1a3246bf97e2fb66ffeb171d7cc3c07e9e)` = false` | `bool` |\n| [half_pixel_centers_](#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs_1ae3f29b6dca178510ad75cc27f7e842cb)` = false` | `bool` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AlignCorners](#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs_1ac1bfb65a718ac0d56ad54304606879bf)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs) If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels. |\n| [HalfPixelCenters](#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs_1af1bbd85d3fd8ba097508c11d125978e8)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs) Defaults to false. |\n\nPublic attributes\n-----------------\n\n### align_corners_\n\n```scdoc\nbool tensorflow::ops::ResizeBilinear::Attrs::align_corners_ = false\n``` \n\n### half_pixel_centers_\n\n```scdoc\nbool tensorflow::ops::ResizeBilinear::Attrs::half_pixel_centers_ = false\n``` \n\nPublic functions\n----------------\n\n### AlignCorners\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeBilinear::Attrs::AlignCorners(\n bool x\n)\n``` \nIf true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels.\n\nDefaults to false.\n\nDefaults to false \n\n### HalfPixelCenters\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeBilinear::Attrs::HalfPixelCenters(\n bool x\n)\n``` \nDefaults to false."]]