simplify_reshapes.hpp 497 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
4
5
#ifndef MIGRAPH_GUARD_RTGLIB_SIMPLIFY_RESHAPES_HPP
#define MIGRAPH_GUARD_RTGLIB_SIMPLIFY_RESHAPES_HPP

#include <string>
#include <migraph/instruction_ref.hpp>
6
#include <migraph/config.hpp>
Paul's avatar
Paul committed
7

8
9
namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
Paul's avatar
Paul committed
10
11
12

struct program;

Paul's avatar
Paul committed
13
14
15
/**
 * Eliminate redundant reshapes.
 */
Paul's avatar
Paul committed
16
17
18
19
20
21
struct simplify_reshapes
{
    std::string name() const { return "simplify_reshapes"; }
    void apply(program& p) const;
};

22
} // namespace MIGRAPH_INLINE_NS
Paul's avatar
Paul committed
23
24
25
} // namespace migraph

#endif