tensorflow::ops::QuantizeAndDequantizeV4
#include <array_ops.h>
Возвращает градиент QuantizeAndDequantizeV4.
Краткое описание
Это почти идентично QuantizeAndDequantizeV2, за исключением того, что возвращает градиент 1 для входных данных, находящихся в диапазоне квантования, или 0 в противном случае.
Аргументы:
- scope: Объект Scope
Возвращает:
-
Output: Выходной тензор.
| Конструкторы и деструкторы | |
|---|---|
QuantizeAndDequantizeV4(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input input_min, ::tensorflow::Input input_max) | |
QuantizeAndDequantizeV4(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input input_min, ::tensorflow::Input input_max, const QuantizeAndDequantizeV4::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
output | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Axis(int64 x) | |
NarrowRange(bool x) | |
NumBits(int64 x) | |
RangeGiven(bool x) | |
RoundMode(StringPiece x) | |
SignedInput(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::QuantizeAndDequantizeV4::Attrs | Дополнительные параметры для QuantizeAndDequantizeV4. |
Публичные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Публичные функции
QuantizeAndDequantizeV4
QuantizeAndDequantizeV4( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input input_min, ::tensorflow::Input input_max )
QuantizeAndDequantizeV4
QuantizeAndDequantizeV4( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input input_min, ::tensorflow::Input input_max, const QuantizeAndDequantizeV4::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
Axis
Attrs Axis( int64 x )
NarrowRange
Attrs NarrowRange( bool x )
NumBits
Attrs NumBits( int64 x )
RangeGiven
Attrs RangeGiven( bool x )
RoundMode
Attrs RoundMode( StringPiece x )
SignedInput
Attrs SignedInput( bool x )
© 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/class/tensorflow/ops/quantize-and-dequantize-v4