Fix 'error : detail is ambiguous' on Windows (#22025)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22025
ghimport-source-id: 0fb408ad185a989507f7509a2a3574e1a7e60ab2
Test Plan: Imported from OSS
Differential Revision: D15926651
Pulled By: ezyang
fbshipit-source-id: 298340bfbfe44dcd81cde8f0d56f8dbde92fb7bd