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
6e53e190
Commit
6e53e190
authored
Jun 18, 2019
by
Khalique
Browse files
formatting
parent
fd491ac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/device/pad.cpp
src/targets/gpu/device/pad.cpp
+3
-3
No files found.
src/targets/gpu/device/pad.cpp
View file @
6e53e190
...
...
@@ -17,13 +17,13 @@ pad(hipStream_t stream, argument result, argument arg1, float value, std::vector
std
::
size_t
nelements
=
arg1
.
get_shape
().
elements
();
if
(
float_equal
(
value
,
std
::
numeric_limits
<
float
>::
lowest
()))
{
auto
val
=
device_cast
(
std
::
numeric_limits
<
decltype
(
value
)
>::
lowest
());
auto
val
=
device_cast
(
std
::
numeric_limits
<
decltype
(
value
)
>::
lowest
());
nary
(
stream
,
result
)([
=
]
{
return
val
;
});
// visit_all(result)([&](auto output) {
// auto* outptr = device_cast(output.data());
// auto val =
// device_cast(std::numeric_limits<typename decltype(output)::value_type>::lowest());
// device_cast(std::numeric_limits<typename
// decltype(output)::value_type>::lowest());
// gs_launch(stream, nelements)([=](auto i) { outptr[i] = val; });
// });
...
...
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