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
6a3637b7
Commit
6a3637b7
authored
May 01, 2019
by
Khalique
Browse files
pass parameters by value
parent
5285c349
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/targets/gpu/device/clip.cpp
src/targets/gpu/device/clip.cpp
+2
-2
src/targets/gpu/include/migraphx/gpu/device/clip.hpp
src/targets/gpu/include/migraphx/gpu/device/clip.hpp
+2
-2
No files found.
src/targets/gpu/device/clip.cpp
View file @
6a3637b7
...
@@ -9,8 +9,8 @@ namespace device {
...
@@ -9,8 +9,8 @@ namespace device {
void
clip
(
hipStream_t
stream
,
void
clip
(
hipStream_t
stream
,
const
argument
&
result
,
const
argument
&
result
,
const
argument
&
arg1
,
const
argument
&
arg1
,
const
float
&
max
,
const
float
max
,
const
float
&
min
)
const
float
min
)
{
{
nary
(
stream
,
result
,
arg1
)(
nary
(
stream
,
result
,
arg1
)(
[
max
,
min
](
auto
x
)
{
return
std
::
min
<
decltype
(
x
)
>
(
std
::
max
<
decltype
(
x
)
>
(
min
,
x
),
max
);
});
[
max
,
min
](
auto
x
)
{
return
std
::
min
<
decltype
(
x
)
>
(
std
::
max
<
decltype
(
x
)
>
(
min
,
x
),
max
);
});
...
...
src/targets/gpu/include/migraphx/gpu/device/clip.hpp
View file @
6a3637b7
...
@@ -13,8 +13,8 @@ namespace device {
...
@@ -13,8 +13,8 @@ namespace device {
void
clip
(
hipStream_t
stream
,
void
clip
(
hipStream_t
stream
,
const
argument
&
result
,
const
argument
&
result
,
const
argument
&
arg1
,
const
argument
&
arg1
,
const
float
&
max
,
const
float
max
,
const
float
&
min
);
const
float
min
);
}
// namespace device
}
// namespace device
}
// namespace gpu
}
// namespace gpu
...
...
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