mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23174 This diff introduces a new function to random generates inputs based on the weights. Test Plan: buck run mode/dev-nosan //caffe2/benchmarks/operator_benchmark/common/tests:random_sample_test -- --iterations 3 ``` # ---------------------------------------- # PyTorch/Caffe2 Operator Micro-benchmarks # ---------------------------------------- # Tag : short # Benchmarking PyTorch: add # Mode: Eager # Name: add_M1_N5_K7 # Input: M: 1, N: 5, K: 7 Forward Execution Time (us) : 82.923 # Benchmarking PyTorch: add # Mode: Eager # Name: add_M1_N6_K8 # Input: M: 1, N: 6, K: 8 Forward Execution Time (us) : 79.535 # Benchmarking PyTorch: add # Mode: Eager # Name: add_M2_N6_K7 # Input: M: 2, N: 6, K: 7 Forward Execution Time (us) : 83.471 # Benchmarking PyTorch: add # Mode: Eager # Name: add_M1_N4_K7 # Input: M: 1, N: 4, K: 7 Forward Execution Time (us) : 84.410 # Benchmarking PyTorch: add # Mode: Eager # Name: add_M1_N6_K7 # Input: M: 1, N: 6, K: 7 Forward Execution Time (us) : 82.399 ``` Reviewed By: zheng-xq Differential Revision: D15791723 fbshipit-source-id: 730e34d455e962ddf594a491d7c81c3f99fafa86 |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| repeat_benchmark.py | ||