Commit d3606680 authored by Paul's avatar Paul
Browse files

Formatting

parent bb5f1eb6
...@@ -5,10 +5,12 @@ namespace migraph { ...@@ -5,10 +5,12 @@ namespace migraph {
namespace detail { namespace detail {
template<class U> template <class U>
void any_cast() {} void any_cast()
{
}
template<class T> template <class T>
struct auto_any_caster struct auto_any_caster
{ {
T& x; T& x;
...@@ -19,15 +21,12 @@ struct auto_any_caster ...@@ -19,15 +21,12 @@ struct auto_any_caster
return any_cast<U>(x); return any_cast<U>(x);
} }
operator T&() operator T&() { return x; }
{
return x;
}
}; };
} } // namespace detail
template<class T> template <class T>
detail::auto_any_caster<T> auto_any_cast(T& x) detail::auto_any_caster<T> auto_any_cast(T& x)
{ {
return {x}; return {x};
......
...@@ -6,14 +6,17 @@ ...@@ -6,14 +6,17 @@
namespace migraph { namespace migraph {
namespace miopen { namespace miopen {
std::vector<pass> target::get_passes(migraph::context&) const { return {lowering{}, write_literals{}}; } std::vector<pass> target::get_passes(migraph::context&) const
{
return {lowering{}, write_literals{}};
}
std::string target::name() const { return "miopen"; } std::string target::name() const { return "miopen"; }
migraph::context target::get_context() const migraph::context target::get_context() const
{ {
return context{share(make_obj<miopen_handle>(&miopenCreate)), return context{share(make_obj<miopen_handle>(&miopenCreate)),
share(create_rocblas_handle_ptr())}; share(create_rocblas_handle_ptr())};
} }
} // namespace miopen } // namespace miopen
......
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