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
12eb2c83
Commit
12eb2c83
authored
Apr 09, 2019
by
Shucai Xiao
Browse files
clang format
parent
7531f5f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/quantize_ins.cpp
src/quantize_ins.cpp
+1
-2
No files found.
src/quantize_ins.cpp
View file @
12eb2c83
...
@@ -22,7 +22,7 @@ instruction_ref insert_fp16(program& prog,
...
@@ -22,7 +22,7 @@ instruction_ref insert_fp16(program& prog,
assert
(
ins
->
get_shape
().
type
()
==
shape
::
float_type
||
assert
(
ins
->
get_shape
().
type
()
==
shape
::
float_type
||
ins
->
get_shape
().
type
()
==
shape
::
double_type
);
ins
->
get_shape
().
type
()
==
shape
::
double_type
);
instruction_ref
ins_fp16
{};
instruction_ref
ins_fp16
{};
if
(
ins
->
name
()
==
"@literal"
&&
ins
->
outputs
().
size
()
==
1
)
if
(
ins
->
name
()
==
"@literal"
&&
ins
->
outputs
().
size
()
==
1
)
{
{
std
::
vector
<
float
>
values
;
std
::
vector
<
float
>
values
;
auto
l_fp32
=
ins
->
get_literal
();
auto
l_fp32
=
ins
->
get_literal
();
...
@@ -97,7 +97,6 @@ void quantize_ins(program& prog, const std::vector<std::string>& ins_names)
...
@@ -97,7 +97,6 @@ void quantize_ins(program& prog, const std::vector<std::string>& ins_names)
prog
.
insert_instruction
(
std
::
next
(
ins
),
op
::
fp_conversion
{
orig_type
},
ins
);
prog
.
insert_instruction
(
std
::
next
(
ins
),
op
::
fp_conversion
{
orig_type
},
ins
);
prog
.
replace_instruction
(
ins
,
ins_orig_type
);
prog
.
replace_instruction
(
ins
,
ins_orig_type
);
}
}
}
}
}
}
}
}
...
...
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