Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::CropAndResize::Attrs
#include <image_ops.h>
Optional attribute setters for CropAndResize.
Summary
Public functions
|
ExtrapolationValue(float x)
|
Value used for extrapolation, when applicable.
|
Method(StringPiece x)
|
A string specifying the sampling method for resizing.
|
Public attributes
float tensorflow::ops::CropAndResize::Attrs::extrapolation_value_ = 0.0f
method_
StringPiece tensorflow::ops::CropAndResize::Attrs::method_ = "bilinear"
Public functions
TF_MUST_USE_RESULT Attrs tensorflow::ops::CropAndResize::Attrs::ExtrapolationValue(
float x
)
Value used for extrapolation, when applicable.
Defaults to 0
Method
TF_MUST_USE_RESULT Attrs tensorflow::ops::CropAndResize::Attrs::Method(
StringPiece x
)
A string specifying the sampling method for resizing.
It can be either "bilinear"
or "nearest"
and default to "bilinear"
. Currently two sampling methods are supported: Bilinear and Nearest Neighbor.
Defaults to "bilinear"
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::CropAndResize::Attrs Struct Reference\n\ntensorflow::ops::CropAndResize::Attrs\n=====================================\n\n`#include \u003cimage_ops.h\u003e`\n\nOptional attribute setters for [CropAndResize](/api_docs/cc/class/tensorflow/ops/crop-and-resize#classtensorflow_1_1ops_1_1_crop_and_resize).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------------|---------------|\n| [extrapolation_value_](#structtensorflow_1_1ops_1_1_crop_and_resize_1_1_attrs_1a68fe7c5f9f6c6289bd4e674b31290529)` = 0.0f` | `float` |\n| [method_](#structtensorflow_1_1ops_1_1_crop_and_resize_1_1_attrs_1a9b39d5075386c3c8a0678ddeb482d1d7)` = \"bilinear\"` | `StringPiece` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ExtrapolationValue](#structtensorflow_1_1ops_1_1_crop_and_resize_1_1_attrs_1a516eb5e4125c3e4abf0b3a4e86f492ab)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/crop-and-resize/attrs#structtensorflow_1_1ops_1_1_crop_and_resize_1_1_attrs) Value used for extrapolation, when applicable. |\n| [Method](#structtensorflow_1_1ops_1_1_crop_and_resize_1_1_attrs_1a2e87e7aef6ba8075918fa95259af4b6f)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/crop-and-resize/attrs#structtensorflow_1_1ops_1_1_crop_and_resize_1_1_attrs) A string specifying the sampling method for resizing. |\n\nPublic attributes\n-----------------\n\n### extrapolation_value_\n\n```scdoc\nfloat tensorflow::ops::CropAndResize::Attrs::extrapolation_value_ = 0.0f\n``` \n\n### method_\n\n```scdoc\nStringPiece tensorflow::ops::CropAndResize::Attrs::method_ = \"bilinear\"\n``` \n\nPublic functions\n----------------\n\n### ExtrapolationValue\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::CropAndResize::Attrs::ExtrapolationValue(\n float x\n)\n``` \nValue used for extrapolation, when applicable.\n\nDefaults to 0 \n\n### Method\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::CropAndResize::Attrs::Method(\n StringPiece x\n)\n``` \nA string specifying the sampling method for resizing.\n\nIt can be either `\"bilinear\"` or `\"nearest\"` and default to `\"bilinear\"`. Currently two sampling methods are supported: Bilinear and Nearest Neighbor.\n\nDefaults to \"bilinear\""]]