context.hpp 470 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
#ifndef MIGRAPH_GUARD_CONTEXT_HPP
#define MIGRAPH_GUARD_CONTEXT_HPP
Paul's avatar
Paul committed
3

Paul's avatar
Paul committed
4
5
6
7
8
9
#include <string>
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>

Paul's avatar
Paul committed
10
namespace migraph {
Paul's avatar
Paul committed
11

Paul's avatar
Paul committed
12
13
14
15
16
17
18
19
20
21
#ifdef DOXYGEN

/// A context is used to store internal data for a `target`. A context is
/// constructed by a target during compilation and passed to the operations
/// during `eval`.
struct context
{};

#else

Paul's avatar
Paul committed
22
23
24
25
<%
interface('context')
%>

Paul's avatar
Paul committed
26
27
#endif

Paul's avatar
Paul committed
28
} // namespace migraph
Paul's avatar
Paul committed
29
30

#endif