fix list_ops and list_tests (#29586)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29586
This diff is fixing the list_ops and list_tests issues caused by D18412342.
Test Plan:
```
buck run //caffe2/benchmarks/operator_benchmark:benchmark_all_tes
t -- --iteration 1 --list_tests
Parsing buck files: finished in 0.9 sec
Creating action graph: finished in 37.2 sec
Building: finished in 15.9 sec (100%) 10053/10053 jobs, 1 updated
Total time: 54.0 sec
# ----------------------------------------
# PyTorch/Caffe2 Operator Micro-benchmarks
# ----------------------------------------
# Tag : short
# List of tests:
# add_M8_N2_K1_cpu
# add_M8_N2_K8_cpu
..
buck run //caffe2/benchmarks/operator_benchmark:benchmark_all_test -- --iteration 1 --list_ops
Parsing buck files: finished in 1.0 sec
Building: finished in 5.3 sec (100%) 10053/10053 jobs, 0 updated
Total time: 6.3 sec
# ----------------------------------------
# PyTorch/Caffe2 Operator Micro-benchmarks
# ----------------------------------------
# Tag : short
# List of Operators to run:
# add
# batchnorm
# cat
# chunks
# Conv1d
# ConvTranspose1d
...
Reviewed By: hl475
Differential Revision: D18435994
fbshipit-source-id: 89ecfd55339b6e7687cdf8d90433d4767252e09f