diff --git a/torchvision/csrc/io/video/video.cpp b/torchvision/csrc/io/video/video.cpp index 2167ea695ec..cdba43c68ee 100644 --- a/torchvision/csrc/io/video/video.cpp +++ b/torchvision/csrc/io/video/video.cpp @@ -77,7 +77,7 @@ std::tuple _parseStream(const std::string& streamString) { long index_ = -1; if (match[2].matched) { try { - index_ = c10::stoi(match[2].str()); + index_ = std::stoi(match[2].str()); } catch (const std::exception&) { TORCH_CHECK( false,