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
41344324
"vscode:/vscode.git/clone" did not exist on "482694f9ac3cc88904b071a9dac25b9042747b5a"
Commit
41344324
authored
May 21, 2019
by
Shucai Xiao
Browse files
extend the scale value for quantize int8
parent
752d3ac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/quantization.cpp
src/quantization.cpp
+1
-1
No files found.
src/quantization.cpp
View file @
41344324
...
@@ -131,7 +131,7 @@ void quantize_int8(program& prog, const std::vector<std::string>& ins_names)
...
@@ -131,7 +131,7 @@ void quantize_int8(program& prog, const std::vector<std::string>& ins_names)
}
}
// tmp value used just testing
// tmp value used just testing
std
::
vector
<
std
::
pair
<
float
,
float
>>
int8_param
{{
64
.0
f
,
0.0
f
},
{
64
.0
f
,
0.0
f
},
{
128.0
f
,
0.0
f
}};
std
::
vector
<
std
::
pair
<
float
,
float
>>
int8_param
{{
127
.0
f
,
0.0
f
},
{
127
.0
f
,
0.0
f
},
{
128.0
f
,
0.0
f
}};
std
::
unordered_map
<
instruction_ref
,
instruction_ref
>
map_quant_ins
;
std
::
unordered_map
<
instruction_ref
,
instruction_ref
>
map_quant_ins
;
for
(
auto
ins
:
iterator_for
(
prog
))
for
(
auto
ins
:
iterator_for
(
prog
))
...
...
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