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
37fc4a4b
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "e63c09c56d933f989703ad5cc4da7b445ce0d221"
Commit
37fc4a4b
authored
Sep 20, 2018
by
mei-ye
Browse files
formatting lowering.cpp
parent
4f7398f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+3
-5
No files found.
src/targets/gpu/lowering.cpp
View file @
37fc4a4b
...
@@ -107,11 +107,11 @@ struct miopen_convolution
...
@@ -107,11 +107,11 @@ struct miopen_convolution
ctx
.
handle
.
get
(),
w_desc
.
get
(),
x_desc
.
get
(),
cd
.
get
(),
y_desc
.
get
(),
&
workspace_size
);
ctx
.
handle
.
get
(),
w_desc
.
get
(),
x_desc
.
get
(),
cd
.
get
(),
y_desc
.
get
(),
&
workspace_size
);
workspace_shape
=
shape
{
shape
::
int8_type
,
{
workspace_size
}};
workspace_shape
=
shape
{
shape
::
int8_type
,
{
workspace_size
}};
auto
x
=
to_gpu
(
generate_argument
(
inputs
[
0
]
->
get_shape
()));
auto
x
=
to_gpu
(
generate_argument
(
inputs
[
0
]
->
get_shape
()));
gpu_sync
();
gpu_sync
();
auto
w
=
to_gpu
(
generate_argument
(
inputs
[
1
]
->
get_shape
()));
auto
w
=
to_gpu
(
generate_argument
(
inputs
[
1
]
->
get_shape
()));
gpu_sync
();
gpu_sync
();
auto
y
=
to_gpu
(
generate_argument
(
output_shape
));
auto
y
=
to_gpu
(
generate_argument
(
output_shape
));
gpu_sync
();
gpu_sync
();
auto
workspace
=
allocate_gpu
(
workspace_shape
);
auto
workspace
=
allocate_gpu
(
workspace_shape
);
...
@@ -453,7 +453,5 @@ struct miopen_apply
...
@@ -453,7 +453,5 @@ struct miopen_apply
};
};
void
lowering
::
apply
(
program
&
p
)
const
{
miopen_apply
{
&
p
,
ctx
}.
apply
();
}
void
lowering
::
apply
(
program
&
p
)
const
{
miopen_apply
{
&
p
,
ctx
}.
apply
();
}
}
// namespace gpu
}
// namespace gpu
}
// namespace migraph
}
// 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