Commit 9c16a90e authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent c43eba64
......@@ -847,16 +847,12 @@ struct dot
// which can be handled by numpy. as long as all previous
// dims are 1 except the last two dims, the two matrices
// are multipliable
if (std::any_of(a.lens().rbegin() + 2, a.lens().rend(), [](auto i) {
return (i != 1);
}))
if(std::any_of(a.lens().rbegin() + 2, a.lens().rend(), [](auto i) { return (i != 1); }))
{
MIGRAPHX_THROW("DOT: first matrix, dimensions before matrix dims must be 1");
}
if (std::any_of(b.lens().rbegin() + 2, b.lens().rend(), [](auto i) {
return (i != 1);
}))
if(std::any_of(b.lens().rbegin() + 2, b.lens().rend(), [](auto i) { return (i != 1); }))
{
MIGRAPHX_THROW("DOT: second matrix, dimensions before matrix dims must be 1");
}
......
......@@ -14,7 +14,7 @@ template <class T>
static auto make_mat(tensor_view<T> x)
{
const auto& s = x.get_shape();
//assert(s.lens().size() == 2);
// assert(s.lens().size() == 2);
std::size_t n_dims = s.lens().size();
std::size_t dim_0 = n_dims - 2;
std::size_t dim_1 = n_dims - 1;
......
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