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
46653e67
"ts/vscode:/vscode.git/clone" did not exist on "e5fb9c518b6aa0838391004eeb122cdee34b60c4"
Commit
46653e67
authored
Jun 23, 2019
by
Paul
Browse files
Formatting
parent
b171e9ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/targets/gpu/device/include/migraphx/gpu/device/tensor_view.hpp
...ts/gpu/device/include/migraphx/gpu/device/tensor_view.hpp
+1
-1
src/targets/gpu/device/pad.cpp
src/targets/gpu/device/pad.cpp
+5
-4
No files found.
src/targets/gpu/device/include/migraphx/gpu/device/tensor_view.hpp
View file @
46653e67
src/targets/gpu/device/pad.cpp
View file @
46653e67
...
@@ -23,7 +23,8 @@ pad(hipStream_t stream, argument result, argument arg1, float value, std::vector
...
@@ -23,7 +23,8 @@ pad(hipStream_t stream, argument result, argument arg1, float value, std::vector
{
{
device_val
=
device_cast
(
std
::
numeric_limits
<
type
>::
lowest
());
device_val
=
device_cast
(
std
::
numeric_limits
<
type
>::
lowest
());
}
}
gs_launch
(
stream
,
result
.
get_shape
().
elements
())([
=
](
auto
i
)
{
output
.
data
()[
i
]
=
device_val
;
});
gs_launch
(
stream
,
result
.
get_shape
().
elements
())([
=
](
auto
i
)
{
output
.
data
()[
i
]
=
device_val
;
});
hip_index
offsets
;
hip_index
offsets
;
std
::
copy
(
pads
.
begin
(),
pads
.
begin
()
+
offsets
.
size
(),
offsets
.
begin
());
std
::
copy
(
pads
.
begin
(),
pads
.
begin
()
+
offsets
.
size
(),
offsets
.
begin
());
...
...
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