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
2fa68ded
Unverified
Commit
2fa68ded
authored
Nov 09, 2022
by
Charlie Lin
Committed by
GitHub
Nov 09, 2022
Browse files
Update src/common.cpp
Co-authored-by:
kahmed10
<
15948690+kahmed10@users.noreply.github.com
>
parent
6c63852d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/common.cpp
src/common.cpp
+2
-6
No files found.
src/common.cpp
View file @
2fa68ded
...
@@ -68,13 +68,9 @@ std::vector<std::size_t> compute_broadcasted_lens(std::vector<std::size_t> s0,
...
@@ -68,13 +68,9 @@ std::vector<std::size_t> compute_broadcasted_lens(std::vector<std::size_t> s0,
std
::
vector
<
shape
::
dynamic_dimension
>
compute_broadcasted_dyn_dims
(
shape
s0
,
shape
s1
)
std
::
vector
<
shape
::
dynamic_dimension
>
compute_broadcasted_dyn_dims
(
shape
s0
,
shape
s1
)
{
{
assert
(
s0
.
dynamic
()
or
s1
.
dynamic
());
// change both shapes to dynamic_dimension representation
// change both shapes to dynamic_dimension representation
if
(
not
s0
.
dynamic
())
s0
=
s0
.
to_dynamic
();
s0
=
s0
.
to_dynamic
();
if
(
not
s1
.
dynamic
())
s1
=
s1
.
to_dynamic
();
s1
=
s1
.
to_dynamic
();
if
(
s0
.
ndim
()
>
s1
.
ndim
())
if
(
s0
.
ndim
()
>
s1
.
ndim
())
{
{
std
::
swap
(
s0
,
s1
);
std
::
swap
(
s0
,
s1
);
...
...
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