tensorflow::ops::QuantizeV2::Attrs
#include <array_ops.h>
Optional attribute setters for QuantizeV2.
Summary
Public attributes | |
---|---|
axis_ = -1 | int64 |
ensure_minimum_range_ = 0.01f | float |
mode_ = "MIN_COMBINED" | StringPiece |
narrow_range_ = false | bool |
round_mode_ = "HALF_AWAY_FROM_ZERO" | StringPiece |
Public functions | |
---|---|
Axis(int64 x) | TF_MUST_USE_RESULT Attrs Defaults to -1. |
EnsureMinimumRange(float x) | TF_MUST_USE_RESULT Attrs Defaults to 0.01. |
Mode(StringPiece x) | TF_MUST_USE_RESULT Attrs Defaults to "MIN_COMBINED". |
NarrowRange(bool x) | TF_MUST_USE_RESULT Attrs Defaults to false. |
RoundMode(StringPiece x) | TF_MUST_USE_RESULT Attrs Defaults to "HALF_AWAY_FROM_ZERO". |
Public attributes
axis_
int64 tensorflow::ops::QuantizeV2::Attrs::axis_ = -1
ensure_minimum_range_
float tensorflow::ops::QuantizeV2::Attrs::ensure_minimum_range_ = 0.01f
mode_
StringPiece tensorflow::ops::QuantizeV2::Attrs::mode_ = "MIN_COMBINED"
narrow_range_
bool tensorflow::ops::QuantizeV2::Attrs::narrow_range_ = false
round_mode_
StringPiece tensorflow::ops::QuantizeV2::Attrs::round_mode_ = "HALF_AWAY_FROM_ZERO"
Public functions
Axis
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Axis( int64 x )
Defaults to -1.
EnsureMinimumRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::EnsureMinimumRange( float x )
Defaults to 0.01.
Mode
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Mode( StringPiece x )
Defaults to "MIN_COMBINED".
NarrowRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::NarrowRange( bool x )
Defaults to false.
RoundMode
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::RoundMode( StringPiece x )
Defaults to "HALF_AWAY_FROM_ZERO".
© 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/quantize-v2/attrs