class ngraph

Overview

#include <base_matcher_pass.hpp>

class ngraph:
    private pass::low_precision::BaseMatcherPass public ngraph::pass::MatcherPass,
    private pass::low_precision::MarkupOptimizations public ngraph::pass::FunctionPass,
    private pass::low_precision::TypeRelaxedReplacer public ngraph::pass::GraphRewrite,
    private pass::low_precision::LowPrecision public ngraph::pass::FunctionPass
{
public:
    // typedefs

    typedef ov::AssertFailure CheckFailure;
    typedef ov::Exception ngraph_error;
    typedef ov::Model Function;
    typedef runtime::HostTensor HostTensor;
    typedef std::shared_ptr<HostTensor> HostTensorPtr;
    typedef std::vector<HostTensorPtr> HostTensorVector;
    typedef std::vector<size_t> TensorLabel;
    typedef std::vector<TensorLabel> TensorLabelVector;
    typedef ov::EvaluationContext EvaluationContext;
    typedef std::vector<std::shared_ptr<ngraph::op::v0::Result>> ResultVector;
    typedef std::unordered_map<ngraph::Node \*, std::shared_ptr<ngraph::Node>> NodeMap;
    typedef Node::type_info_t NodeTypeInfo;
    typedef std::map<RawNodeOutput, Output<Node>> RawNodeOutputMap;
    typedef std::vector<std::shared_ptr<op::Parameter>> ParameterVector;
    typedef std::vector<std::shared_ptr<op::Result>> ResultVector;
    typedef std::vector<std::shared_ptr<op::Sink>> SinkVector;
    typedef std::shared_ptr<Variable> VariablePtr;
    typedef std::vector<VariablePtr> VariableVector;
    typedef std::unordered_map<VariablePtr, VariableValuePtr> VariableMap;
    typedef std::shared_ptr<VariableValue> VariableValuePtr;
    typedef ov::NodeVector NodeVector;
    typedef ov::OutputVector OutputVector;
    typedef ov::DiscreteTypeInfo VariantTypeInfo;
    typedef ov::RuntimeAttribute Variant;
    typedef std::shared_ptr<runtime::HostTensor> HostTensorPtr;

    // enums

    enum LOG_TYPE;

    // fields

    AttributeParameters params;
    const auto node_validation_failure_loc_string = ov::node_validation_failure_loc_string;
    const auto as_output_vector = ov::as_output_vector;
    const auto as_node_vector = ov::as_node_vector;
    const auto as_result_vector = ov::as_result_vector;
    template NGRAPH_API AxisVector order;
    template class OPENVINO_API VariantImpl< int64_t >;
    template class OPENVINO_API VariantImpl< bool >;

    // methods

    BaseMatcherPass(const AttributeParameters& params = AttributeParameters());

    MarkupOptimizations(
        const std::vector<OperationPrecisionRestriction>& precisionRestrictions,
        const std::vector<OperationPerTensorQuantizationRestriction>& quantizationRestrictions,
        const AttributeParameters& params
        );

    TypeRelaxedReplacer();

    LowPrecision(
        const std::vector<OperationPrecisionRestriction>& precisionRestrictions = {},
        const std::vector<OperationPerTensorQuantizationRestriction>& quantizationRestrictions = {},
        const LayerTransformation::Params = LayerTransformation::Params()
        );

    bool run_on_model(const std::shared_ptr<ngraph::Function>& m);
    static bool isFunctionQuantized(const std::shared_ptr<const ngraph::Function>& function);

    static bool isFQLevelsPresent(
        const std::shared_ptr<const ngraph::Function>& function,
        const std::set<size_t>& levels
        );
};

Detailed Documentation

Typedefs

typedef ov::Exception ngraph_error

Base error for ngraph runtime errors.

typedef std::unordered_map<ngraph::Node \*, std::shared_ptr<ngraph::Node>> NodeMap

Alias useful for cloning.