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
e145f958
Commit
e145f958
authored
Apr 02, 2019
by
Paul
Browse files
Skip literals
parent
580cf447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/constant_propagate.cpp
src/constant_propagate.cpp
+1
-1
No files found.
src/constant_propagate.cpp
View file @
e145f958
...
@@ -28,7 +28,7 @@ struct match_const_add
...
@@ -28,7 +28,7 @@ struct match_const_add
void
constant_propagate
::
apply
(
program
&
p
)
const
void
constant_propagate
::
apply
(
program
&
p
)
const
{
{
fix
([
&
](
auto
self
,
auto
ins
)
{
fix
([
&
](
auto
self
,
auto
ins
)
{
if
(
not
ins
->
get_shape
().
broadcasted
())
if
(
not
ins
->
get_shape
().
broadcasted
()
and
ins
->
name
()
!=
"@literal"
)
{
{
auto
r
=
ins
->
eval
();
auto
r
=
ins
->
eval
();
if
(
not
r
.
empty
())
if
(
not
r
.
empty
())
...
...
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