Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ZeroDivisionError in utils.bottleneck (pytorch#11987)
Summary: **ZeroDivisionError** occurs when `cuda_prof_exec_time` is small enough. This situation is normal for a project that has little CUDA work. Or someone does not make his work transferred to CUDA successfully. In this time he profiles the code, this error occurs. Pull Request resolved: pytorch#11987 Differential Revision: D10488568 Pulled By: soumith fbshipit-source-id: db8c1e9e88a00943c100958ebef41a1cb56e7e65
- Loading branch information