Commit ca3de161 authored by mei-ye's avatar mei-ye
Browse files

remove unneeded changes

parent bc4b5a7f
......@@ -215,6 +215,7 @@ inline const ValueType& any_cast(const pass& x)
}
#endif
} // namespace migraph
#endif
......@@ -241,6 +241,7 @@ inline const ValueType& any_cast(const target& x)
}
#endif
} // namespace migraph
#endif
#ifndef MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP
#define MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP
#include <migraph/argument.hpp>
#include <unordered_map>
namespace migraph {
namespace cpu {
......@@ -11,6 +8,7 @@ struct context
{
void finish() const {}
};
} // namespace cpu
} // namespace migraph
......
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_CPU_TARGET_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_CPU_TARGET_HPP
#include <migraph/program.hpp>
#include <migraph/cpu/context.hpp>
namespace migraph {
namespace cpu {
struct cpu_target
{
std::string name() const;
std::vector<pass> get_passes(migraph::context& ctx) const;
migraph::context get_context() const { return context{}; }
};
} // namespace cpu
} // namespace migraph
#endif
......@@ -9,7 +9,7 @@ struct dce_target
{
return {migraph::dead_code_elimination{}};
}
migraph::context get_context(migraph::parameter_map) const { return {}; }
migraph::context get_context() const { return {}; }
};
void simple_test()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment