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
08ffe31b
Commit
08ffe31b
authored
Jul 27, 2022
by
Ted Themistokleous
Browse files
Add case for divzero in insert_generic_instructions
parent
3a84c350
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/module.cpp
src/module.cpp
+9
-2
No files found.
src/module.cpp
View file @
08ffe31b
...
@@ -247,9 +247,16 @@ insert_generic_instructions(module& m,
...
@@ -247,9 +247,16 @@ insert_generic_instructions(module& m,
mod_outputs
=
copy_inputs
;
mod_outputs
=
copy_inputs
;
break
;
break
;
}
}
else
if
(
sins
->
name
()
==
"@divzero"
)
{
shape
s
=
sins
->
get_shape
();
copy_ins
=
m
.
add_divzero
(
inputs
,
{
s
});
}
else
{
copy_ins
=
m
.
insert_instruction
(
ins
,
sins
->
get_operator
(),
copy_inputs
,
mod_args
);
copy_ins
=
m
.
insert_instruction
(
ins
,
sins
->
get_operator
(),
copy_inputs
,
mod_args
);
}
}
}
map_ins
[
sins
]
=
copy_ins
;
map_ins
[
sins
]
=
copy_ins
;
}
}
if
(
mod_outputs
.
empty
()
and
instructions
.
begin
()
!=
instructions
.
end
())
if
(
mod_outputs
.
empty
()
and
instructions
.
begin
()
!=
instructions
.
end
())
...
...
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