Class This class creates a node which performs the following#

class FakeQuantize : public ov::op::Op#

Class performing element-wise linear quantization.

Note

Input floating point values are quantized into a discrete set of floating point values.

Public Functions

FakeQuantize(const Output<Node> &data, const Output<Node> &input_low, const Output<Node> &input_high, const Output<Node> &output_low, const Output<Node> &output_high, std::size_t levels, const AutoBroadcastSpec &auto_broadcast = AutoBroadcastSpec(AutoBroadcastType::NUMPY))#

Constructs a FakeQuantize operation node.

Parameters:
  • data[in] The input data tensor.

  • input_low[in] The minimum limit for input values.

  • input_high[in] The maximum limit for input values.

  • output_low[in] The minimum quantized value.

  • output_high[in] The maximum quantized value.

  • levels[in] The number of quantization levels.

  • auto_broadcast[in] AutoBroadcast mode to be used for broadcasting limit values

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

virtual bool has_evaluate() const override#

Allows to get information about availability of evaluate method for the current operation.