Class FakeQuantWithMinMaxVars
Defined in File fake_quant_with_min_max_vars.h
Inheritance Relationships
Base Type
public mindspore::ops::BaseOperator
Class Documentation
-
class FakeQuantWithMinMaxVars : public mindspore::ops::BaseOperator
Fake-quantize the input by minimum and maximum. Refer to Python API
mindspore.ops.FakeQuantWithMinMaxVars
for more details.Public Functions
-
inline FakeQuantWithMinMaxVars()
Constructor.
-
void Init(const bool narrow_range = false, const int64_t num_bits = 8)
Init. Refer to the parameters of Python API
mindspore.ops.FakeQuantWithMinMaxVars
for the inputs.
-
void set_narrow_range(const bool narrow_range)
Set narrow_range.
-
void set_num_bits(const int64_t num_bits)
Set num_bits.
-
bool get_narrow_range() const
Get narrow_range.
- Returns
narrow_range.
-
int64_t get_num_bits() const
Get num_bits.
- Returns
num_bits.
-
inline FakeQuantWithMinMaxVars()