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
6560d17b
Commit
6560d17b
authored
Apr 10, 2019
by
Shucai Xiao
Browse files
rename a function to have a more reasonable name
parent
a374d441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/quantization.cpp
src/quantization.cpp
+2
-2
No files found.
src/quantization.cpp
View file @
6560d17b
...
...
@@ -16,7 +16,7 @@
namespace
migraphx
{
inline
namespace
MIGRAPHX_INLINE_NS
{
instruction_ref
convert_
fp32
_fp16
(
program
&
prog
,
instruction_ref
&
ins
)
instruction_ref
convert_
to
_fp16
(
program
&
prog
,
instruction_ref
&
ins
)
{
assert
(
ins
->
get_shape
().
type
()
==
shape
::
float_type
||
ins
->
get_shape
().
type
()
==
shape
::
double_type
);
...
...
@@ -66,7 +66,7 @@ void quantize(program& prog)
ins
->
get_shape
().
type
()
==
shape
::
double_type
))
{
orig_type
=
ins
->
get_shape
().
type
();
auto
ins_fp16
=
convert_
fp32
_fp16
(
prog
,
ins
);
auto
ins_fp16
=
convert_
to
_fp16
(
prog
,
ins
);
auto
outputs
=
ins
->
outputs
();
for
(
auto
output
:
outputs
)
{
...
...
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