Skip to content

Commit

Permalink
[fbsync] replace c10::stoi with std::stoi (#7966)
Browse files Browse the repository at this point in the history
Reviewed By: matteobettini

Differential Revision: D49600772

fbshipit-source-id: d3b73fc1a1e5a1e81212bc4e0d16c9d17ddeedcf
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Sep 26, 2023
1 parent 21a0742 commit 14c59a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/csrc/io/video/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ std::tuple<std::string, long> _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,
Expand Down

0 comments on commit 14c59a4

Please sign in to comment.