Commit 291762b7 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 6001b750
......@@ -169,16 +169,16 @@ rocblas_half to_rocblas_type(half x) { return reinterpret_cast<const rocblas_hal
void miopen_gemm::batch_not_transposed(const std::vector<std::size_t>& strides) const
{
if (strides.size() <= 2) return;
auto dim_0 = strides.size() - 2;
if(strides.size() <= 2)
return;
auto dim_0 = strides.size() - 2;
auto matrix_size = std::max(strides[dim_0], strides[dim_0 + 1]);
std::vector<std::size_t> batch(strides.begin(), strides.begin() + dim_0);
if(std::adjacent_find(batch.begin(), batch.end(), [&](auto i, auto j) {
return (i < j or i < matrix_size or j < matrix_size);
}) != batch.end())
return (i < j or i < matrix_size or j < matrix_size);
}) != batch.end())
{
MIGRAPHX_THROW("DOT: batch size of a {" + to_string_range(strides) +
"} is transposed!");
MIGRAPHX_THROW("DOT: batch size of a {" + to_string_range(strides) + "} is transposed!");
}
}
......
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