pytorch/binaries
Scott Wolchok c083489f46 [kineto] Optimize getStepCallbacks for common case of no active callbacks
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77804

IIUC, the result of this function will be empty and unused if there are no sampled callbacks, which is the common case. We can accelerate this case by wrapping the result in an optional to save initializing an empty SmallVector.

Differential Revision: [D36497279](https://our.internmc.facebook.com/intern/diff/D36497279/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D36497279/)!

Approved by: https://github.com/robieta
2022-05-24 19:38:01 +00:00
..
bench_gen Fix ONNX ATen fallback for non-caffe2 engines 2022-04-14 23:18:45 +00:00
aot_model_compiler.cc Add dynamic shape support to AOT driver & compiler (#72995) 2022-02-24 04:30:48 +00:00
at_launch_benchmark.cc
benchmark_args.h
benchmark_helper.cc
benchmark_helper.h
caffe2_benchmark.cc
CMakeLists.txt Add binary to benchmark model load speed (#74700) 2022-03-30 20:22:57 +00:00
compare_models_torch.cc
convert_and_benchmark.cc
convert_caffe_image_db.cc
convert_db.cc
convert_encoded_to_raw_leveldb.cc
convert_image_to_tensor.cc
core_overhead_benchmark.cc
core_overhead_benchmark_gpu.cc
db_throughput.cc
dump_operator_names.cc
inspect_gpu.cc
intra_inter_benchmark.cc
lite_interpreter_model_load.cc
load_benchmark_torch.cc Add binary to benchmark model load speed (#74700) 2022-03-30 20:22:57 +00:00
make_cifar_db.cc
make_image_db.cc
make_mnist_db.cc
optimize_for_mobile.cc
parallel_info.cc
predictor_verifier.cc
print_core_object_sizes_gpu.cc
print_registered_core_operators.cc
record_function_benchmark.cc [kineto] Optimize getStepCallbacks for common case of no active callbacks 2022-05-24 19:38:01 +00:00
run_plan.cc
run_plan_mpi.cc
speed_benchmark.cc
speed_benchmark_torch.cc [vulkan] Allow benchmark binary to handle non-single tensor inputs/outputs for Vulkan models (#73109) 2022-02-19 01:33:51 +00:00
split_db.cc
tsv_2_proto.cc
tutorial_blob.cc
zmq_feeder.cc