target.cpp 416 Bytes
Newer Older
Shucai Xiao's avatar
Shucai Xiao committed
1
2
3
4
5
6

#include <migraph/cpu/target.hpp>
#include <migraph/cpu/lowering.hpp>
#include <migraph/auto_contiguous.hpp>

namespace migraph {
7
namespace MIGRAPH_INLINE_NS {
Shucai Xiao's avatar
Shucai Xiao committed
8
9
10
11
12
13
14
15
16
17
namespace cpu {

std::string target::name() const { return "cpu"; }

std::vector<pass> target::get_passes(migraph::context&) const
{
    return {auto_contiguous{}, lowering{}};
}

} // namespace cpu
18
} // namespace MIGRAPH_INLINE_NS
Shucai Xiao's avatar
Shucai Xiao committed
19
} // namespace migraph