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
fc03c706
Commit
fc03c706
authored
May 24, 2019
by
Shucai Xiao
Browse files
clang format
parent
ab0b8b80
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp
src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp
+4
-1
src/targets/gpu/include/migraphx/gpu/quant_gemm.hpp
src/targets/gpu/include/migraphx/gpu/quant_gemm.hpp
+3
-3
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+2
-2
No files found.
src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp
View file @
fc03c706
...
...
@@ -33,7 +33,10 @@ struct miopen_quant_convolution
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
;
shape
compile
(
context
&
ctx
,
const
shape
&
output_shape
,
std
::
vector
<
shape
>
inputs
);
void
finalize
(
context
&
ctx
,
const
shape
&
output_shape
,
std
::
vector
<
shape
>
inputs
);
std
::
ptrdiff_t
output_alias
(
const
std
::
vector
<
shape
>&
shapes
)
const
{
return
shapes
.
size
()
-
1
;
}
std
::
ptrdiff_t
output_alias
(
const
std
::
vector
<
shape
>&
shapes
)
const
{
return
shapes
.
size
()
-
1
;
}
private:
shape
pack_int8_shape
(
shape
&
s
);
...
...
src/targets/gpu/include/migraphx/gpu/quant_gemm.hpp
View file @
fc03c706
...
...
@@ -14,7 +14,7 @@ struct miopen_quant_gemm
{
op
::
quant_dot
op
;
miopen_quant_gemm
(
op
::
quant_dot
qop
)
:
op
(
qop
)
{}
miopen_quant_gemm
(
op
::
quant_dot
qop
)
:
op
(
qop
)
{}
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
...
...
@@ -32,8 +32,8 @@ struct miopen_quant_gemm
}
private:
mutable
argument
arg_a
;
mutable
argument
arg_b
;
mutable
argument
arg_a
;
mutable
argument
arg_b
;
};
}
// namespace gpu
...
...
src/targets/gpu/quant_gemm.cpp
View file @
fc03c706
...
...
@@ -57,8 +57,8 @@ shape miopen_quant_gemm::compute_shape(const std::vector<shape>& inputs) const
std
::
vector
<
shape
>
input_shapes
(
inputs
);
input_shapes
.
pop_back
();
check_shapes
{
input_shapes
}.
not_broadcasted
();
bool
transa
=
inputs
[
0
].
transposed
();
bool
transb
=
inputs
[
1
].
transposed
();
bool
transa
=
inputs
[
0
].
transposed
();
bool
transb
=
inputs
[
1
].
transposed
();
if
(
!
transb
)
{
...
...
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