class ngraph::IntervalsAlignmentAttribute¶
Overview¶
IntervalsAlignmentAttribute defines subgraph with the same quantization intervals alignment. FakeQuantize operations are included. The attribute is used by quantization operations. More…
#include <intervals_alignment_attribute.hpp>
class IntervalsAlignmentAttribute: public SharedAttribute
{
public:
// fields
size_t levels;
// construction
IntervalsAlignmentAttribute();
IntervalsAlignmentAttribute(
IntervalsAlignmentSharedValue::Interval combinedInterval,
size_t levels
);
IntervalsAlignmentAttribute(
const IntervalsAlignmentSharedValue::Interval combinedInterval,
const size_t levels,
const IntervalsAlignmentSharedValue::Interval minInterval,
const size_t minLevels
);
// methods
OPENVINO_RTTI("LowPrecision::IntervalsAlignment", "", 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¶
IntervalsAlignmentAttribute defines subgraph with the same quantization intervals alignment. FakeQuantize operations are included. The attribute is used by quantization operations.
For more details about the attribute, refer to IntervalsAlignmentAttribute page in the Inference Engine Developer Guide.