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
5cce443f
Commit
5cce443f
authored
Sep 26, 2018
by
wsttiger
Browse files
Formatting
parent
c527d0b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
src/targets/gpu/convolution.cpp
src/targets/gpu/convolution.cpp
+6
-4
src/targets/gpu/gemm.cpp
src/targets/gpu/gemm.cpp
+3
-3
src/targets/gpu/include/migraph/gpu/pooling.hpp
src/targets/gpu/include/migraph/gpu/pooling.hpp
+0
-1
src/targets/gpu/pooling.cpp
src/targets/gpu/pooling.cpp
+3
-3
No files found.
src/targets/gpu/convolution.cpp
View file @
5cce443f
...
...
@@ -12,8 +12,9 @@ shape miopen_convolution::compute_shape(const std::vector<shape>& inputs) const
check_shapes
{
inputs
,
*
this
}.
has
(
4
).
standard
();
return
op
.
compute_shape
({
inputs
.
at
(
0
),
inputs
.
at
(
1
)});
}
argument
miopen_convolution
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
argument
miopen_convolution
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
{
auto
x_desc
=
make_tensor
(
args
[
0
].
get_shape
());
auto
w_desc
=
make_tensor
(
args
[
1
].
get_shape
());
...
...
@@ -36,7 +37,9 @@ miopen_convolution::compute(context& ctx, const shape& output_shape, const std::
return
args
[
3
];
}
shape
miopen_convolution
::
compile
(
context
&
ctx
,
const
shape
&
output_shape
,
std
::
vector
<
instruction_ref
>
inputs
)
shape
miopen_convolution
::
compile
(
context
&
ctx
,
const
shape
&
output_shape
,
std
::
vector
<
instruction_ref
>
inputs
)
{
shape
workspace_shape
{};
auto
x_desc
=
make_tensor
(
inputs
[
0
]
->
get_shape
());
...
...
@@ -76,4 +79,3 @@ shape miopen_convolution::compile(context& ctx, const shape& output_shape, std::
}
// namespace gpu
}
// namespace migraph
src/targets/gpu/gemm.cpp
View file @
5cce443f
...
...
@@ -12,8 +12,9 @@ shape miopen_gemm::compute_shape(const std::vector<shape>& inputs) const
check_shapes
{
inputs
,
*
this
}.
has
(
3
);
return
op
.
compute_shape
({
inputs
.
at
(
0
),
inputs
.
at
(
1
)});
}
argument
miopen_gemm
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
argument
miopen_gemm
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
{
float
alpha
=
1.0
f
;
float
beta
=
0.0
f
;
...
...
@@ -45,4 +46,3 @@ miopen_gemm::compute(context& ctx, const shape& output_shape, const std::vector<
}
// namespace gpu
}
// namespace migraph
src/targets/gpu/include/migraph/gpu/pooling.hpp
View file @
5cce443f
...
...
@@ -20,7 +20,6 @@
namespace
migraph
{
namespace
gpu
{
struct
miopen_pooling
{
pooling
op
;
...
...
src/targets/gpu/pooling.cpp
View file @
5cce443f
...
...
@@ -12,8 +12,9 @@ shape miopen_pooling::compute_shape(const std::vector<shape>& inputs) const
check_shapes
{
inputs
,
*
this
}.
has
(
2
).
standard
();
return
op
.
compute_shape
({
inputs
.
at
(
0
)});
}
argument
miopen_pooling
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
argument
miopen_pooling
::
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
{
auto
x_desc
=
make_tensor
(
args
[
0
].
get_shape
());
auto
y_desc
=
make_tensor
(
output_shape
);
...
...
@@ -38,4 +39,3 @@ miopen_pooling::compute(context& ctx, const shape& output_shape, const std::vect
}
// namespace gpu
}
// namespace migraph
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