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
bad7dc9f
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "058470c828cefbf1b9ef42bc5b9ce5f65ba3368a"
Commit
bad7dc9f
authored
May 06, 2019
by
Shucai Xiao
Browse files
clang format
parent
ab768083
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp
src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp
+1
-1
src/targets/gpu/pack_int8_args.cpp
src/targets/gpu/pack_int8_args.cpp
+4
-4
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+2
-2
No files found.
src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp
View file @
bad7dc9f
...
@@ -18,7 +18,7 @@ struct pack_int8_args
...
@@ -18,7 +18,7 @@ struct pack_int8_args
void
apply
(
program
&
p
)
const
;
void
apply
(
program
&
p
)
const
;
};
};
}
}
// namespace gpu
}
// namespace MIGRAPHX_INLINE_NS
}
// namespace MIGRAPHX_INLINE_NS
}
// namespace migraphx
}
// namespace migraphx
...
...
src/targets/gpu/pack_int8_args.cpp
View file @
bad7dc9f
...
@@ -16,12 +16,12 @@ void pack_int8_args::apply(program& p) const
...
@@ -16,12 +16,12 @@ void pack_int8_args::apply(program& p) const
if
(
ins
->
name
()
!=
"gpu::quant_gemm"
)
if
(
ins
->
name
()
!=
"gpu::quant_gemm"
)
continue
;
continue
;
auto
inputs
=
ins
->
inputs
();
auto
inputs
=
ins
->
inputs
();
auto
shape_a
=
inputs
.
at
(
0
)
->
get_shape
();
auto
shape_a
=
inputs
.
at
(
0
)
->
get_shape
();
if
(
shape_a
.
type
()
!=
shape
::
int8_type
)
if
(
shape_a
.
type
()
!=
shape
::
int8_type
)
continue
;
continue
;
if
(
shape_a
.
transposed
())
if
(
shape_a
.
transposed
())
{
{
auto
pack_a
=
p
.
insert_instruction
(
ins
,
hip_allocate
{
shape_a
});
auto
pack_a
=
p
.
insert_instruction
(
ins
,
hip_allocate
{
shape_a
});
inputs
.
push_back
(
pack_a
);
inputs
.
push_back
(
pack_a
);
...
@@ -29,7 +29,7 @@ void pack_int8_args::apply(program& p) const
...
@@ -29,7 +29,7 @@ void pack_int8_args::apply(program& p) const
}
}
auto
shape_b
=
inputs
.
at
(
1
)
->
get_shape
();
auto
shape_b
=
inputs
.
at
(
1
)
->
get_shape
();
if
(
!
shape_b
.
transposed
())
if
(
!
shape_b
.
transposed
())
{
{
auto
pack_b
=
p
.
insert_instruction
(
ins
,
hip_allocate
{
shape_b
});
auto
pack_b
=
p
.
insert_instruction
(
ins
,
hip_allocate
{
shape_b
});
inputs
.
push_back
(
pack_b
);
inputs
.
push_back
(
pack_b
);
...
...
src/targets/gpu/quant_gemm.cpp
View file @
bad7dc9f
...
@@ -54,11 +54,11 @@ rb_type<T>* to_rocblas_type(T* x)
...
@@ -54,11 +54,11 @@ rb_type<T>* to_rocblas_type(T* x)
shape
miopen_quant_gemm
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
shape
miopen_quant_gemm
::
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
{
{
std
::
vector
<
shape
>
input_shapes
(
inputs
);
std
::
vector
<
shape
>
input_shapes
(
inputs
);
if
(
!
inputs
.
at
(
1
).
transposed
())
if
(
!
inputs
.
at
(
1
).
transposed
())
{
{
input_shapes
.
pop_back
();
input_shapes
.
pop_back
();
}
}
if
(
inputs
.
at
(
0
).
transposed
())
if
(
inputs
.
at
(
0
).
transposed
())
{
{
input_shapes
.
pop_back
();
input_shapes
.
pop_back
();
}
}
...
...
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