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

clang format

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