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
fea5c55d
Commit
fea5c55d
authored
Aug 30, 2022
by
umangyadav
Browse files
paul's comments
parent
eb01ef26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
src/targets/gpu/convolution.cpp
src/targets/gpu/convolution.cpp
+5
-4
src/targets/gpu/deconvolution.cpp
src/targets/gpu/deconvolution.cpp
+4
-4
src/targets/gpu/quant_convolution.cpp
src/targets/gpu/quant_convolution.cpp
+4
-4
No files found.
src/targets/gpu/convolution.cpp
View file @
fea5c55d
...
...
@@ -144,11 +144,12 @@ shape miopen_convolution::find(context& ctx, const shape& output_shape, std::vec
if
(
status
!=
miopenStatusSuccess
)
MIGRAPHX_THROW
(
"MIOpen Convolution: get solution failed"
);
solution_id
=
solutions
.
front
().
solution_id
;
algo
=
solutions
.
front
().
algorithm
;
workspace_size
=
solutions
.
front
().
workspace_size
;
return
shape
{
shape
::
int8_type
,
{
workspace_size
}};
const
auto
&
best_solution
=
solutions
.
front
();
solution_id
=
best_solution
.
solution_id
;
algo
=
best_solution
.
algorithm
;
return
shape
{
shape
::
int8_type
,
{
best_solution
.
workspace_size
}};
}
void
miopen_convolution
::
finalize
(
context
&
ctx
,
...
...
src/targets/gpu/deconvolution.cpp
View file @
fea5c55d
...
...
@@ -144,11 +144,11 @@ shape miopen_deconvolution::find(context& ctx, const shape& output_shape, std::v
if
(
status
!=
miopenStatusSuccess
)
MIGRAPHX_THROW
(
"MIOpen Deconvolution: get solution failed"
);
solution
_id
=
solutions
.
front
()
.
solution_id
;
algo
=
solutions
.
front
().
algorithm
;
workspace_size
=
solutions
.
front
().
workspace_size
;
const
auto
&
best_
solution
=
solutions
.
front
();
solution_id
=
best_solution
.
solution_id
;
algo
=
best_solution
.
algorithm
;
return
shape
{
shape
::
int8_type
,
{
workspace_size
}};
return
shape
{
shape
::
int8_type
,
{
best_solution
.
workspace_size
}};
}
void
miopen_deconvolution
::
finalize
(
context
&
ctx
,
...
...
src/targets/gpu/quant_convolution.cpp
View file @
fea5c55d
...
...
@@ -137,12 +137,12 @@ shape miopen_quant_convolution::find(context& ctx,
if
(
status
!=
miopenStatusSuccess
)
MIGRAPHX_THROW
(
"MIOpen Quant Convolution: get solution failed"
);
solution
_id
=
solutions
.
front
()
.
solution_id
;
const
auto
&
best_
solution
=
solutions
.
front
();
algo
=
solutions
.
front
().
algorithm
;
workspace_size
=
solutions
.
front
().
workspace_size
;
solution_id
=
best_solution
.
solution_id
;
algo
=
best_solution
.
algorithm
;
return
shape
{
shape
::
int8_type
,
{
workspace_size
}};
return
shape
{
shape
::
int8_type
,
{
best_solution
.
workspace_size
}};
}
void
miopen_quant_convolution
::
finalize
(
context
&
ctx
,
...
...
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