eliminate_concat.hpp 622 Bytes
Newer Older
1
2
3
4
5
6
#ifndef MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP

#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph/concat_opt.hpp>
7
#include <migraph/config.hpp>
8
9

namespace migraph {
10
inline namespace MIGRAPH_INLINE_NS {
11
12
13

struct program;

Paul's avatar
Paul committed
14
15
16
/**
 * Remove concat operators by having each operator can write to different chunk of memory. 
 */
17
18
struct eliminate_concat
{
Scott Thornton's avatar
Scott Thornton committed
19
    concat_optimization concat_opt;
20
21
22
23
    std::string name() const { return "eliminate_concat"; }
    void apply(program& p) const;
};

24
} // namespace MIGRAPH_INLINE_NS
25
26
27
} // namespace migraph

#endif