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
33c69d55
Commit
33c69d55
authored
May 22, 2019
by
Shucai Xiao
Browse files
clang format
parent
445c5ed3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/device/convert.cpp
src/targets/gpu/device/convert.cpp
+2
-2
No files found.
src/targets/gpu/device/convert.cpp
View file @
33c69d55
...
@@ -20,8 +20,8 @@ void convert(hipStream_t stream,
...
@@ -20,8 +20,8 @@ void convert(hipStream_t stream,
if
(
target_type
==
shape
::
int8_type
)
if
(
target_type
==
shape
::
int8_type
)
{
{
gs_launch
(
stream
,
result
.
get_shape
().
elements
())([
=
](
auto
i
)
{
gs_launch
(
stream
,
result
.
get_shape
().
elements
())([
=
](
auto
i
)
{
output_ptr
[
i
]
=
output_ptr
[
i
]
=
std
::
min
<
int8_t
>
(
std
::
min
<
int8_t
>
(
std
::
max
<
float
>
(
-
128
,
input_ptr
[
i
]
*
scale
+
shift
+
0.5
),
127
);
std
::
max
<
float
>
(
-
128
,
input_ptr
[
i
]
*
scale
+
shift
+
0.5
),
127
);
});
});
}
}
else
else
...
...
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