Commit af8cb16f authored by Paul's avatar Paul
Browse files

Formatting

parent c2db1916
...@@ -263,7 +263,8 @@ auto hip_visit_all(T&& x, Ts&&... xs) ...@@ -263,7 +263,8 @@ auto hip_visit_all(T&& x, Ts&&... xs)
{ {
return [&](auto f) { return [&](auto f) {
visit_tensor_size(x.get_shape().lens().size(), [&](auto dim) { visit_tensor_size(x.get_shape().lens().size(), [&](auto dim) {
visit_all(x, xs...)([&](auto... vs) { f(make_hip_tensor_view<dim>(device_cast(vs))...); }); visit_all(x,
xs...)([&](auto... vs) { f(make_hip_tensor_view<dim>(device_cast(vs))...); });
}); });
}; };
} }
...@@ -273,7 +274,8 @@ auto hip_vec_visit_all(T&& x, Ts&&... xs) ...@@ -273,7 +274,8 @@ auto hip_vec_visit_all(T&& x, Ts&&... xs)
{ {
return [&](auto f) { return [&](auto f) {
visit_tensor_size(x.get_shape().lens().size(), [&](auto dim) { visit_tensor_size(x.get_shape().lens().size(), [&](auto dim) {
visit_all(x, xs...)([&](auto... vs) { f(make_hip_tensor_view<dim>(as_vec<N>(device_cast(vs)))...); }); visit_all(x, xs...)(
[&](auto... vs) { f(make_hip_tensor_view<dim>(as_vec<N>(device_cast(vs)))...); });
}); });
}; };
} }
......
...@@ -17,7 +17,6 @@ inline namespace MIGRAPHX_INLINE_NS { ...@@ -17,7 +17,6 @@ inline namespace MIGRAPHX_INLINE_NS {
namespace gpu { namespace gpu {
namespace device { namespace device {
template <class T, std::size_t N> template <class T, std::size_t N>
using vec = T __attribute__((ext_vector_type(N))); using vec = T __attribute__((ext_vector_type(N)));
......
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