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
0bd9c447
"packaging/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "d98c8847f9950c6268a94e2e2a6027ca6456cf6d"
Commit
0bd9c447
authored
Jul 13, 2019
by
Shucai Xiao
Browse files
clang format
parent
28c7a058
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/quantization.cpp
src/quantization.cpp
+1
-3
No files found.
src/quantization.cpp
View file @
0bd9c447
...
@@ -384,8 +384,7 @@ void capture_arguments(program& prog,
...
@@ -384,8 +384,7 @@ void capture_arguments(program& prog,
void
capture_arguments
(
program
&
prog
,
const
std
::
vector
<
std
::
string
>&
ins_names
)
void
capture_arguments
(
program
&
prog
,
const
std
::
vector
<
std
::
string
>&
ins_names
)
{
{
auto
calc_quant_params
=
[
&
](
std
::
size_t
ins_index
,
std
::
vector
<
migraphx
::
argument
>
args
)
auto
calc_quant_params
=
[
&
](
std
::
size_t
ins_index
,
std
::
vector
<
migraphx
::
argument
>
args
)
{
{
std
::
pair
<
float
,
float
>
param_pair
{
1.0
f
,
0.0
f
};
std
::
pair
<
float
,
float
>
param_pair
{
1.0
f
,
0.0
f
};
// scale and shift is need for only int8 type, and we do not
// scale and shift is need for only int8 type, and we do not
...
@@ -400,7 +399,6 @@ void capture_arguments(program& prog, const std::vector<std::string>& ins_names)
...
@@ -400,7 +399,6 @@ void capture_arguments(program& prog, const std::vector<std::string>& ins_names)
prog
.
int8_quant_params
[
ins_index
]
=
param_pair
;
prog
.
int8_quant_params
[
ins_index
]
=
param_pair
;
};
};
capture_arguments
(
prog
,
ins_names
,
calc_quant_params
);
capture_arguments
(
prog
,
ins_names
,
calc_quant_params
);
}
}
...
...
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