Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
49720cf1
Commit
49720cf1
authored
Jun 25, 2019
by
Shucai Xiao
Browse files
clang format
parent
bfe4a900
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/shape.cpp
src/shape.cpp
+7
-7
No files found.
src/shape.cpp
View file @
49720cf1
...
@@ -145,13 +145,13 @@ std::vector<std::size_t> shape::multi(std::size_t i) const
...
@@ -145,13 +145,13 @@ std::vector<std::size_t> shape::multi(std::size_t i) const
std
::
vector
<
std
::
size_t
>
indices
(
lens
().
size
());
std
::
vector
<
std
::
size_t
>
indices
(
lens
().
size
());
std
::
transform
(
strides
().
begin
(),
std
::
transform
(
strides
().
begin
(),
strides
().
end
(),
strides
().
end
(),
lens
().
begin
(),
lens
().
begin
(),
indices
.
begin
(),
indices
.
begin
(),
[
&
](
std
::
size_t
stride
,
std
::
size_t
len
)
{
[
&
](
std
::
size_t
stride
,
std
::
size_t
len
)
{
assert
(
len
>
0
and
stride
>
0
);
assert
(
len
>
0
and
stride
>
0
);
return
(
i
/
stride
)
%
len
;
return
(
i
/
stride
)
%
len
;
});
});
return
indices
;
return
indices
;
}
}
...
...
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