ChaiBapchya commented on a change in pull request #17502: [OpPerf] Implement 
remaining random sampling ops
URL: https://github.com/apache/incubator-mxnet/pull/17502#discussion_r373754277
 
 

 ##########
 File path: benchmark/opperf/utils/op_registry_utils.py
 ##########
 @@ -223,13 +223,16 @@ def get_all_random_sampling_operators():
     -------
     {"operator_name": {"has_backward", "nd_op_handle", "params"}}
     """
+    # Additional Random Sampling ops which do not start with "random_" or 
"sample_"
+    additional_random_sampling_ops = ['GridGenerator', 'BilinearSampler']
+
     # Get all mxnet operators
     mx_operators = _get_all_mxnet_operators()
 
     # Filter for Random Sampling operators
     random_sampling_mx_operators = {}
-    for op_name, op_params in mx_operators.items():
-        if op_name.startswith(("random_", "sample_")) and op_name not in 
unique_ops:
+    for op_name, _ in mx_operators.items():
+        if (op_name.startswith(("random_", "sample_")) or op_name in 
additional_random_sampling_ops):
 
 Review comment:
   do we need the brackets in python3?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to