interface ngraph::snippets::Generator

Overview

Target independent code generator interface. More…

#include <generator.hpp>

template Generator
{
    // construction

    Generator(const std::shared_ptr<TargetMachine>& t);

    // methods

    code generate(
        std::shared_ptr<ov::Model>& m,
        const void \* compile_params = nullptr
        ) const;
};

Detailed Documentation

Target independent code generator interface.

Construction

Generator(const std::shared_ptr<TargetMachine>& t)

Default constructor.

Methods

code generate(
    std::shared_ptr<ov::Model>& m,
    const void \* compile_params = nullptr
    ) const

virtual method any specific implementation should implement

Parameters:

m

model in canonical for for table-based code generation

Returns:

pointer to generated code