pytorch
af3468a1 - change op bench input shape to reduce execution time (#29616)

Commit
5 years ago
change op bench input shape to reduce execution time (#29616) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29616 1. Reduce the predefined_min_time which is the minimum time each test needs to run. Based on the test result, the average time across different epoch are pretty stable before exiting. So we can safely reduce the predefined time here. 2. Chang the input shapes of several ops Test Plan: ``` # ---------------------------------------- # PyTorch/Caffe2 Operator Micro-benchmarks # ---------------------------------------- # Tag : short # Benchmarking PyTorch: add 200 256.044864655 400 165.850520134 800 163.579881191 1600 162.871927023 3200 160.3128016 # Mode: Eager # Name: add_cpu_M64_K64_bwd1_N64 # Input: device: cpu, K: 64, M: 64, N: 64 Backward Execution Time (us) : 164.715 # Benchmarking PyTorch: add 200 170.650482178 400 168.895125389 800 169.867575169 1600 163.400024176 3200 168.658420444 # Mode: Eager # Name: add_cpu_M64_K64_bwd2_N64 # Input: device: cpu, K: 64, M: 64, N: 64 Backward Execution Time (us) : 168.777 Reviewed By: hl475 Differential Revision: D18438540 fbshipit-source-id: 1fd27cf4bbc34e46e74393af912ee2fcb75c33b2
Author
Parents
Loading