Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
4cb3d802
Unverified
Commit
4cb3d802
authored
Sep 18, 2023
by
Philip Meier
Committed by
GitHub
Sep 18, 2023
Browse files
replace c10::stoi with std::stoi (#7966)
parent
75046bde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/csrc/io/video/video.cpp
torchvision/csrc/io/video/video.cpp
+1
-1
No files found.
torchvision/csrc/io/video/video.cpp
View file @
4cb3d802
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment