#include <image_ops.h>
Optional attribute setters for ExtractGlimpse.
Public attributes | |
---|---|
centered_ = true | bool |
noise_ = "uniform" | StringPiece |
normalized_ = true | bool |
uniform_noise_ = true | bool |
Public functions | |
---|---|
Centered(bool x) | TF_MUST_USE_RESULT Attrs indicates if the offset coordinates are centered relative to the image, in which case the (0, 0) offset is relative to the center of the input images. |
Noise(StringPiece x) | TF_MUST_USE_RESULT Attrs indicates if the noise should uniform , gaussian , or zero . |
Normalized(bool x) | TF_MUST_USE_RESULT Attrs indicates if the offset coordinates are normalized. |
UniformNoise(bool x) | TF_MUST_USE_RESULT Attrs indicates if the noise should be generated using a uniform distribution or a Gaussian distribution. |
bool tensorflow::ops::ExtractGlimpse::Attrs::centered_ = true
StringPiece tensorflow::ops::ExtractGlimpse::Attrs::noise_ = "uniform"
bool tensorflow::ops::ExtractGlimpse::Attrs::normalized_ = true
bool tensorflow::ops::ExtractGlimpse::Attrs::uniform_noise_ = true
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Centered( bool x )
indicates if the offset coordinates are centered relative to the image, in which case the (0, 0) offset is relative to the center of the input images.
If false, the (0,0) offset corresponds to the upper left corner of the input images.
Defaults to true
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Noise( StringPiece x )
indicates if the noise should uniform
, gaussian
, or zero
.
The default is uniform
which means the the noise type will be decided by uniform_noise
.
Defaults to "uniform"
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::Normalized( bool x )
indicates if the offset coordinates are normalized.
Defaults to true
TF_MUST_USE_RESULT Attrs tensorflow::ops::ExtractGlimpse::Attrs::UniformNoise( bool x )
indicates if the noise should be generated using a uniform distribution or a Gaussian distribution.
Defaults to true
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/extract-glimpse/attrs