context.hpp 490 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
#include <cassert>
Paul's avatar
Paul committed
5
6
7
8
9
10
#include <string>
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>

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

Paul's avatar
Paul committed
13
14
15
16
17
18
#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
Paul's avatar
Paul committed
19
20
{
};
Paul's avatar
Paul committed
21
22
23

#else

Paul's avatar
Paul committed
24
25
26
27
<%
interface('context')
%>

Paul's avatar
Paul committed
28
29
#endif

Paul's avatar
Paul committed
30
} // namespace migraph
Paul's avatar
Paul committed
31
32

#endif