Skip to content

Commit 4cb3d80

Browse files
authored
replace c10::stoi with std::stoi (#7966)
1 parent 75046bd commit 4cb3d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/csrc/io/video/video.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ std::tuple<std::string, long> _parseStream(const std::string& streamString) {
7777
long index_ = -1;
7878
if (match[2].matched) {
7979
try {
80-
index_ = c10::stoi(match[2].str());
80+
index_ = std::stoi(match[2].str());
8181
} catch (const std::exception&) {
8282
TORCH_CHECK(
8383
false,

0 commit comments

Comments
 (0)