interface ngraph::snippets::Schedule

Overview

Return scheduling information and pointer to generated kernel code. More…

#include <generator.hpp>

template Schedule
{
    // fields

    Shape work_size {};
    bool is_flat {false};
    code ptr {nullptr};

    // construction

    Schedule();
    Schedule(const Shape& ws, bool f, code p);

    // methods

    template <typename K>
    K get_callable() const;
};

Detailed Documentation

Return scheduling information and pointer to generated kernel code.

Construction

Schedule()

Default constructor.

Schedule(const Shape& ws, bool f, code p)

Default to create schedule out of specific parameters.

Parameters:

ws

work size for kernel execution

f

can this kernel be linearided to 1D range

p

pointer to generated code

Methods

template <typename K>
K get_callable() const

Returns callable instanse of code pointer.