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
6d5a34d2
Commit
6d5a34d2
authored
Nov 22, 2023
by
Paul
Browse files
Format
parent
53a8997f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/targets/gpu/kernels/include/migraphx/kernels/concat.hpp
src/targets/gpu/kernels/include/migraphx/kernels/concat.hpp
+5
-5
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/concat.hpp
View file @
6d5a34d2
...
...
@@ -63,13 +63,13 @@ template <index_int Axis, class Start, class InputPack, class F, class... Ts>
__device__
auto
concat_each
(
index
idx
,
Start
start
,
InputPack
input_pack
,
F
f
,
Ts
...
ts
)
{
return
input_pack
([
&
](
auto
g
,
auto
x
,
auto
...
xs
)
{
return
concat_slices
<
Axis
>
(
x
,
start
,
ts
...)([
&
](
auto
z
,
auto
...
ys
)
{
idx
.
global_stride
(
x
.
get_shape
().
elements
(),
[
&
](
auto
i
)
{
z
[
i
]
=
f
(
g
(
x
[
i
],
xs
[
i
]...),
ys
[
i
]...);
});
return
concat_slices
<
Axis
>
(
x
,
start
,
ts
...)([
&
](
auto
z
,
auto
...
ys
)
{
idx
.
global_stride
(
x
.
get_shape
().
elements
(),
[
&
](
auto
i
)
{
z
[
i
]
=
f
(
g
(
x
[
i
],
xs
[
i
]...),
ys
[
i
]...);
});
return
start
+
concat_ends
<
Axis
>
(
x
);
});
return
start
+
concat_ends
<
Axis
>
(
x
);
});
});
}
template
<
index_int
Axis
,
class
...
InputPacks
>
...
...
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