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
f014fb96
Commit
f014fb96
authored
Nov 26, 2023
by
Umang Yadav
Browse files
Fix eliminate_fp8 pass
parent
8734ffa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/eliminate_fp8.cpp
src/eliminate_fp8.cpp
+2
-1
No files found.
src/eliminate_fp8.cpp
View file @
f014fb96
...
@@ -37,7 +37,8 @@ void eliminate_fp8::apply(module& m) const
...
@@ -37,7 +37,8 @@ void eliminate_fp8::apply(module& m) const
{
{
for
(
auto
ins
:
iterator_for
(
m
))
for
(
auto
ins
:
iterator_for
(
m
))
{
{
if
(
not
contains
(
op_names
,
ins
->
name
()))
if
(
not
contains
(
op_names
,
ins
->
name
())
or
ins
->
get_shape
().
type
()
!=
migraphx
::
shape
::
fp8e4m3fnuz_type
)
continue
;
continue
;
migraphx
::
shape
::
type_t
orig_type
=
ins
->
get_shape
().
type
();
migraphx
::
shape
::
type_t
orig_type
=
ins
->
get_shape
().
type
();
std
::
vector
<
instruction_ref
>
orig_inputs
=
ins
->
inputs
();
std
::
vector
<
instruction_ref
>
orig_inputs
=
ins
->
inputs
();
...
...
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