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
56b65698
Commit
56b65698
authored
Apr 29, 2019
by
Shucai Xiao
Browse files
clang format
parent
4d6264b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/include/migraphx/op/quant_dot.hpp
src/include/migraphx/op/quant_dot.hpp
+2
-2
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+2
-2
No files found.
src/include/migraphx/op/quant_dot.hpp
View file @
56b65698
...
...
@@ -64,10 +64,10 @@ struct quant_dot
auto
m
=
a
.
lens
()[
dim_0
];
auto
n
=
b
.
lens
()[
dim_1
];
auto
k
=
a
.
lens
()[
dim_1
];
if
((
m
%
4
)
!=
0
or
(
n
%
4
)
!=
0
or
(
k
%
4
)
!=
0
)
if
((
m
%
4
)
!=
0
or
(
n
%
4
)
!=
0
or
(
k
%
4
)
!=
0
)
{
MIGRAPHX_THROW
(
"QUANT_DOT: size of A {"
+
to_string_range
(
a
.
lens
())
+
"} and B {"
+
to_string_range
(
b
.
lens
())
+
"} must be multiple of 4 for int8 type"
);
to_string_range
(
b
.
lens
())
+
"} must be multiple of 4 for int8 type"
);
}
auto
out_lens
=
a
.
lens
();
...
...
src/targets/gpu/quant_gemm.cpp
View file @
56b65698
...
...
@@ -174,8 +174,8 @@ shape miopen_quant_gemm::compute_shape(const std::vector<shape>& inputs) const
}
argument
miopen_quant_gemm
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
{
bool
is_3inputs
=
(
args
.
size
()
==
4
);
float
beta
=
0.0
f
;
...
...
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