class ngraph::QuantizationAlignmentAttribute

Overview

QuantizationAlignmentAttribute defines subgraph with the same quantization alignment. FakeQuantize operations are not included. The attribute is used by quantization operations. More…

#include <quantization_alignment_attribute.hpp>

class QuantizationAlignmentAttribute: public SharedAttribute
{
public:
    // construction

    QuantizationAlignmentAttribute(const bool value = false);

    // methods

    OPENVINO_RTTI(
        "LowPrecision::QuantizationAlignment",
        "",
        ov::RuntimeAttribute,
        0
        );

    void merge_attributes(std::vector<ov::Any>& attributes);
    virtual std::string to_string() const;

    static ov::Any create(
        const std::shared_ptr<ngraph::Node>& node,
        const AttributeParameters& params = AttributeParameters()
        );
};

Inherited Members

public:
    // typedefs

    typedef std::shared_ptr<RuntimeAttribute> Ptr;
    typedef std::tuple<::ov::RuntimeAttribute> Base;

    // classes

    class SharedValueAttribute;

    // fields

    std::shared_ptr<SharedValueAttribute> attribute;

    // methods

    static _OPENVINO_HIDDEN_METHOD const DiscreteTypeInfo& get_type_info_static();
    virtual const DiscreteTypeInfo& get_type_info() const;
    virtual bool is_copyable() const;
    virtual Any init(const std::shared_ptr<Node>& node) const;
    virtual Any merge(const ov::NodeVector& nodes) const;
    virtual Any merge(const ov::OutputVector& outputs) const;
    virtual std::string to_string() const;
    virtual bool visit_attributes(AttributeVisitor&);
    bool visit_attributes(AttributeVisitor& visitor) const;
    const T& value() const;
    T& value();

Detailed Documentation

QuantizationAlignmentAttribute defines subgraph with the same quantization alignment. FakeQuantize operations are not included. The attribute is used by quantization operations.

For more details about the attribute, refer to QuantizationAlignmentAttribute page in the Inference Engine Developer Guide.