Commit d3606680 authored by Paul's avatar Paul
Browse files

Formatting

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