Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 5a4c01b

Browse files
ChaiBapchyaapeforest
authored andcommitted
[Opperf] Filter out deprecated ops (#15541)
* normal, uniform ops * Revert "normal, uniform ops" This reverts commit f8d6f95. * filter out deprecated ops * Trigger notification * additional deprecated ops * Trigger notification * Trigger notification * Trigger notification
1 parent 09cf75b commit 5a4c01b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

benchmark/opperf/utils/op_registry_utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def _select_ops(operator_names, filters=("_contrib", "_"), merge_op_forward_back
3737
By default, filter out all Contrib operators that starts with '_contrib' and internal operators that
3838
starts with '_'.
3939
40+
Note - All deprecated operators are filtered out as well.
41+
4042
Parameters
4143
----------
4244
operator_names: List[str]
@@ -53,6 +55,11 @@ def _select_ops(operator_names, filters=("_contrib", "_"), merge_op_forward_back
5355
mx_operators = {}
5456
operators_with_backward = []
5557

58+
# Filter out deprecated operators
59+
filters += ("normal", "uniform", "BatchNorm_v1", "Flatten", "contrib_CTCLoss", "Pad", "Cast",
60+
"Pooling_v1", "Concat", "Reshape", "Convolution_v1", "SliceChannel", "Crop",
61+
"crop", "onehot_encode")
62+
5663
if merge_op_forward_backward:
5764
filters += ("_backward",)
5865

0 commit comments

Comments
 (0)