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
967743c9
Commit
967743c9
authored
Jul 06, 2023
by
Khalique Ahmed
Browse files
formatting
parent
b3813f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/quantize_fp16.cpp
src/quantize_fp16.cpp
+3
-3
No files found.
src/quantize_fp16.cpp
View file @
967743c9
...
...
@@ -85,12 +85,12 @@ static void quantize_params(module& m)
std
::
vector
<
std
::
string
>
param_names
=
m
.
get_parameter_names
();
for
(
auto
param_name
:
param_names
)
{
auto
param
=
m
.
get_parameter
(
param_name
);
auto
param
=
m
.
get_parameter
(
param_name
);
auto
param_shape
=
param
->
get_shape
();
if
(
param_shape
.
type
()
==
shape
::
float_type
)
{
auto
new_param
=
m
.
add_parameter
(
param_name
,
migraphx
::
shape
{
shape
::
half_type
,
param_shape
.
lens
()});
auto
new_param
=
m
.
add_parameter
(
param_name
,
migraphx
::
shape
{
shape
::
half_type
,
param_shape
.
lens
()});
m
.
replace_instruction
(
param
,
new_param
);
m
.
remove_instruction
(
param
);
}
...
...
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