"...resnet50_tensorflow.git" did not exist on "40c76720e293f9d54c296939d062bd0098aabbce"
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) ...@@ -215,6 +215,7 @@ inline const ValueType& any_cast(const pass& x)
} }
#endif #endif
} // namespace migraph } // namespace migraph
#endif #endif
...@@ -241,6 +241,7 @@ inline const ValueType& any_cast(const target& x) ...@@ -241,6 +241,7 @@ inline const ValueType& any_cast(const target& x)
} }
#endif #endif
} // namespace migraph } // namespace migraph
#endif #endif
#ifndef MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP #ifndef MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP
#define MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP #define MIGRAPH_GUARD_RTGLIB_CONTEXT_HPP
#include <migraph/argument.hpp>
#include <unordered_map>
namespace migraph { namespace migraph {
namespace cpu { namespace cpu {
...@@ -11,6 +8,7 @@ struct context ...@@ -11,6 +8,7 @@ struct context
{ {
void finish() const {} void finish() const {}
}; };
} // namespace cpu } // namespace cpu
} // namespace migraph } // 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 ...@@ -9,7 +9,7 @@ struct dce_target
{ {
return {migraph::dead_code_elimination{}}; return {migraph::dead_code_elimination{}};
} }
migraph::context get_context(migraph::parameter_map) const { return {}; } migraph::context get_context() const { return {}; }
}; };
void simple_test() 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