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
e42603a5
Commit
e42603a5
authored
Apr 16, 2019
by
Paul
Browse files
Use local shape variable
parent
22c28f75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/propagate_constant.cpp
src/propagate_constant.cpp
+3
-2
No files found.
src/propagate_constant.cpp
View file @
e42603a5
...
@@ -12,9 +12,10 @@ bool skip_propogate(instruction_ref ins)
...
@@ -12,9 +12,10 @@ bool skip_propogate(instruction_ref ins)
{
{
if
(
ins
->
name
()
==
"@literal"
)
if
(
ins
->
name
()
==
"@literal"
)
return
true
;
return
true
;
if
(
ins
->
get_shape
().
broadcasted
()
and
not
ins
->
get_shape
().
scalar
())
auto
&&
s
=
ins
->
get_shape
();
if
(
s
.
broadcasted
()
and
not
s
.
scalar
())
return
true
;
return
true
;
if
(
ins
->
get_shape
().
scalar
()
and
ins
->
get_shape
()
.
elements
()
!=
1
)
if
(
s
.
scalar
()
and
s
.
elements
()
!=
1
)
return
true
;
return
true
;
return
false
;
return
false
;
}
}
...
...
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