class ngraph::PrecisionsAttribute

Overview

PrecisionsAttribute defines precision which is required for input/output port or an operation. More…

#include <precisions_attribute.hpp>

class PrecisionsAttribute: public SharedAttribute
{
public:
    // construction

    PrecisionsAttribute(const std::vector<ngraph::element::Type>& precisions);

    // methods

    OPENVINO_RTTI("LowPrecision::Precisions", "", 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
        );
};

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

PrecisionsAttribute defines precision which is required for input/output port or an operation.

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