Closed PatriceVignola closed 3 years ago
Please note, tf_cnn_benchmarks is unmantained and uses TF 1 APIs instead of TF 2 APIs. It is highly recommended to use the Official Models instead, which have cleaner implementations, support far more features and models, and use TF 2 APIs. I will merge this PR as a courtesy and because it is useful for users still using tf_cnn_benchmarks, but I encourage you to use the official models.
Please note, tf_cnn_benchmarks is unmantained and uses TF 1 APIs instead of TF 2 APIs. It is highly recommended to use the Official Models instead, which have cleaner implementations, support far more features and models, and use TF 2 APIs. I will merge this PR as a courtesy and because it is useful for users still using tf_cnn_benchmarks, but I encourage you to use the official models.
Thank you! We're using these models to test a TF 1.15 fork, which is why we can't use the official models.
To compute durations,
time.perf_counter()
is more reliable thantime.time()
. Whentime.time()
is used on Windows in some of the faster benchmark models ran on the GPU (e.g. trivial), the lack in accuracy can result in divisions by zero: