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
32addf31
Commit
32addf31
authored
May 10, 2019
by
Shucai Xiao
Browse files
clang format
parent
8e824ed1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+3
-3
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+1
-1
No files found.
src/targets/gpu/lowering.cpp
View file @
32addf31
...
...
@@ -179,16 +179,16 @@ struct miopen_apply
std
::
vector
<
instruction_ref
>
refs
=
ins
->
inputs
();
// add additional arguments if need packing. Since lowering is added
// after auto_contiguous and before eliminate contiguous, the shapes
// after auto_contiguous and before eliminate contiguous, the shapes
// of all inputs are standard, so the input shape cannot be transposed.
// To avoid that, we need to check whether this argument is an output
// of contiguous. If true, we should check the shape of the input
// of the contiguous operator.
auto
prev_ins
=
refs
.
at
(
0
);
if
(
prev_ins
->
name
()
==
"gpu::contiguous"
)
if
(
prev_ins
->
name
()
==
"gpu::contiguous"
)
{
auto
input
=
prev_ins
->
inputs
().
front
();
if
(
input
->
get_shape
().
transposed
())
if
(
input
->
get_shape
().
transposed
())
{
auto
pack_a
=
insert_allocation
(
input
,
input
->
get_shape
());
// replace one of the inputs of quant_gemm from the output to the
...
...
src/targets/gpu/quant_gemm.cpp
View file @
32addf31
...
...
@@ -75,7 +75,7 @@ argument miopen_quant_gemm::compute(context& ctx,
const
std
::
vector
<
argument
>&
args
)
const
{
// handling the packing of B MUST be before handling that for A
auto
arg_res
=
args
.
back
();
auto
arg_res
=
args
.
back
();
bool
transa
=
args
[
0
].
get_shape
().
transposed
();
bool
transb
=
args
[
1
].
get_shape
().
transposed
();
auto
n_dim
=
output_shape
.
lens
().
size
();
...
...
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