"PTDN/configs/ppocr_sys_mobile_params.txt" did not exist on "08166b8351da1b164a9e93fe140678b3e8bf4712"
eliminate_allocation.hpp 659 Bytes
Newer Older
1
2
3
4
#ifndef MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP

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

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

struct program;

Paul's avatar
Paul committed
13
/**
Paul's avatar
Paul committed
14
15
 * Remove memory allocations. This will create a parameter which is the max of all memory used in
 * the program.
Paul's avatar
Paul committed
16
 */
17
18
struct eliminate_allocation
{
Paul's avatar
Paul committed
19
20
    std::string allocation_op{};
    std::size_t alignment = 32;
21
22
23
    std::string name() const { return "eliminate_allocation"; }
    void apply(program& p) const;
};
24

25
} // namespace MIGRAPH_INLINE_NS
Paul's avatar
Paul committed
26
} // namespace migraphx
27
28

#endif