Skip to content

Commit

Permalink
[one-cmds] Add an option for RemoveUnnecessaryCastPass (#13897)
Browse files Browse the repository at this point in the history
This commit adds one-cmd option for RemoveUnnecessaryCastPass.

ONE-DCO-1.0-Signed-off-by: Jan Iwaszkiewicz <[email protected]>
  • Loading branch information
jiwaszki authored Sep 6, 2024
1 parent f568a1a commit 73fb1a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/one-cmds/how-to-use-one-commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Current transformation options are
- remove_redundant_reshape : This fuses or removes redundant reshape operators.
- remove_redundant_transpose : This fuses or removes redundant transpose operators.
- remove_unnecessary_add : This removes unnecessary add operators.
- remove_unnecessary_cast : This will remove unnecessary cast with the same input and output type.
- remove_unnecessary_reshape : This removes unnecessary reshape operators.
- remove_unnecessary_slice : This removes unnecessary slice operators.
- remove_unnecessary_strided_slice : This removes unnecessary strided slice operators.
Expand Down
2 changes: 2 additions & 0 deletions compiler/one-cmds/onelib/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class CONSTANT:
'remove_redundant_reshape',
'remove_redundant_transpose',
'remove_unnecessary_add',
'remove_unnecessary_cast'
'remove_unnecessary_reshape',
'remove_unnecessary_slice',
'remove_unnecessary_strided_slice',
Expand Down Expand Up @@ -157,6 +158,7 @@ class CONSTANT:
('remove_redundant_reshape', 'fuse or remove subsequent Reshape ops'),
('remove_redundant_transpose', 'fuse or remove subsequent Transpose ops'),
('remove_unnecessary_add', 'remove unnecessary add ops'),
('remove_unnecessary_cast', 'remove unnecessary cast ops'),
('remove_unnecessary_reshape', 'remove unnecessary reshape ops'),
('remove_unnecessary_slice', 'remove unnecessary slice ops'),
('remove_unnecessary_strided_slice', 'remove unnecessary strided slice ops'),
Expand Down

0 comments on commit 73fb1a4

Please sign in to comment.