Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
af110526
Commit
af110526
authored
Mar 31, 2022
by
Shucai Xiao
Browse files
clang format
parent
8a5f8759
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/targets/gpu/device/add.cpp
src/targets/gpu/device/add.cpp
+2
-2
src/targets/gpu/device/gelu.cpp
src/targets/gpu/device/gelu.cpp
+2
-2
src/targets/gpu/device/mul.cpp
src/targets/gpu/device/mul.cpp
+1
-1
src/targets/gpu/device/mul_add.cpp
src/targets/gpu/device/mul_add.cpp
+2
-2
No files found.
src/targets/gpu/device/add.cpp
View file @
af110526
...
@@ -9,9 +9,9 @@ namespace gpu {
...
@@ -9,9 +9,9 @@ namespace gpu {
namespace
device
{
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
;
}
}
...
...
src/targets/gpu/device/gelu.cpp
View file @
af110526
...
@@ -35,9 +35,9 @@ void gelu_new(hipStream_t stream, const argument& result, const argument& arg)
...
@@ -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
)
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
;
}
}
...
...
src/targets/gpu/device/mul.cpp
View file @
af110526
...
@@ -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
;
}
}
...
...
src/targets/gpu/device/mul_add.cpp
View file @
af110526
...
@@ -40,9 +40,9 @@ __global__ void mul_add_kernel_dim4(void* a, void* x, void* b, int factor, int d
...
@@ -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
)
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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment