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