diff --git a/benchmark/opperf/utils/op_registry_utils.py b/benchmark/opperf/utils/op_registry_utils.py index 860b83a4dace..207895d9b1ea 100644 --- a/benchmark/opperf/utils/op_registry_utils.py +++ b/benchmark/opperf/utils/op_registry_utils.py @@ -37,6 +37,8 @@ def _select_ops(operator_names, filters=("_contrib", "_"), merge_op_forward_back By default, filter out all Contrib operators that starts with '_contrib' and internal operators that starts with '_'. + Note - All deprecated operators are filtered out as well. + Parameters ---------- operator_names: List[str] @@ -53,6 +55,11 @@ def _select_ops(operator_names, filters=("_contrib", "_"), merge_op_forward_back mx_operators = {} operators_with_backward = [] + # Filter out deprecated operators + filters += ("normal", "uniform", "BatchNorm_v1", "Flatten", "contrib_CTCLoss", "Pad", "Cast", + "Pooling_v1", "Concat", "Reshape", "Convolution_v1", "SliceChannel", "Crop", + "crop", "onehot_encode") + if merge_op_forward_backward: filters += ("_backward",)