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
fc9b2a7d
Commit
fc9b2a7d
authored
Sep 11, 2022
by
Paul
Browse files
Format
parent
d90d2137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/targets/gpu/jit/concat.cpp
src/targets/gpu/jit/concat.cpp
+4
-2
No files found.
src/targets/gpu/jit/concat.cpp
View file @
fc9b2a7d
...
@@ -63,8 +63,10 @@ struct concat_compiler : compiler<concat_compiler>
...
@@ -63,8 +63,10 @@ struct concat_compiler : compiler<concat_compiler>
static
std
::
size_t
get_concat_elements
(
const
std
::
vector
<
shape
>&
inputs
)
static
std
::
size_t
get_concat_elements
(
const
std
::
vector
<
shape
>&
inputs
)
{
{
auto
total
=
std
::
accumulate
(
auto
total
=
inputs
.
begin
(),
std
::
prev
(
inputs
.
end
()),
0
,
[](
auto
x
,
auto
s
)
{
return
x
+
s
.
elements
();
});
std
::
accumulate
(
inputs
.
begin
(),
std
::
prev
(
inputs
.
end
()),
0
,
[](
auto
x
,
auto
s
)
{
return
x
+
s
.
elements
();
});
return
total
/
(
inputs
.
size
()
-
1
);
return
total
/
(
inputs
.
size
()
-
1
);
}
}
...
...
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