Commit af110526 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 8a5f8759
......@@ -9,9 +9,9 @@ namespace gpu {
namespace device {
static bool is_bert(const std::vector<shape>& ss)
{
{
auto last_dim = ss.front().lens().back();
if (last_dim % 2 != 0)
if(last_dim % 2 != 0)
{
return false;
}
......
......@@ -35,9 +35,9 @@ void gelu_new(hipStream_t stream, const argument& result, const argument& arg)
}
static bool is_bert(const std::vector<shape>& ss)
{
{
auto last_dim = ss.front().lens().back();
if (last_dim % 2 != 0)
if(last_dim % 2 != 0)
{
return false;
}
......
......@@ -11,7 +11,7 @@ namespace device {
static bool is_bert(const std::vector<shape>& ss)
{
auto last_dim = ss.front().lens().back();
if (last_dim % 2 != 0)
if(last_dim % 2 != 0)
{
return false;
}
......
......@@ -40,9 +40,9 @@ __global__ void mul_add_kernel_dim4(void* a, void* x, void* b, int factor, int d
}
static bool is_bert(const std::vector<shape>& ss)
{
{
auto last_dim = ss.front().lens().back();
if (last_dim % 2 != 0)
if(last_dim % 2 != 0)
{
return false;
}
......
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