class ngraph::QuantizationGranularityAttribute

Overview

QuantizationGranularityAttribute defines quantization granularity of operation inputs. More…

#include <quantization_granularity_attribute.hpp>

class QuantizationGranularityAttribute: public ov::RuntimeAttribute
{
public:
    // enums

    enum Granularity;

    // fields

    Granularity granularity;

    // construction

    QuantizationGranularityAttribute();
    QuantizationGranularityAttribute(const Granularity granularity);

    // methods

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

    bool operator == (const QuantizationGranularityAttribute& attribute) const;
    bool is_skipped() const;
    virtual std::string to_string() const;
};

Inherited Members

public:
    // typedefs

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

    // 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;

Detailed Documentation

QuantizationGranularityAttribute defines quantization granularity of operation inputs.

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