W3cubDocs

/TensorFlow C++

tensorflow::ops::QuantizeAndDequantizeV2::Attrs

#include <array_ops.h>

Optional attribute setters for QuantizeAndDequantizeV2.

Summary

Public attributes
num_bits_ = 8
int64
range_given_ = false
bool
signed_input_ = true
bool
Public functions
NumBits(int64 x)
The bitwidth of the quantization.
RangeGiven(bool x)
If the range is given or should be computed from the tensor.
SignedInput(bool x)
If the quantization is signed or unsigned.

Public attributes

num_bits_

int64 tensorflow::ops::QuantizeAndDequantizeV2::Attrs::num_bits_ = 8

range_given_

bool tensorflow::ops::QuantizeAndDequantizeV2::Attrs::range_given_ = false

signed_input_

bool tensorflow::ops::QuantizeAndDequantizeV2::Attrs::signed_input_ = true

Public functions

NumBits

Attrs tensorflow::ops::QuantizeAndDequantizeV2::Attrs::NumBits(
  int64 x
)

The bitwidth of the quantization.

Defaults to 8

RangeGiven

Attrs tensorflow::ops::QuantizeAndDequantizeV2::Attrs::RangeGiven(
  bool x
)

If the range is given or should be computed from the tensor.

Defaults to false

SignedInput

Attrs tensorflow::ops::QuantizeAndDequantizeV2::Attrs::SignedInput(
  bool x
)

If the quantization is signed or unsigned.

Defaults to true

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v2/attrs.html