Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ strtobool
Function
strtobool
test/run_test.py:95–98 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
93
94
95
def
strtobool(s):
96
if
s.lower() in [
""
,
"0"
,
"false"
,
"off"
]:
97
return
False
98
return
True
99
100
101
def
parse_test_module(test):
Callers
1
parse_args
Function · 0.85
Calls
1
lower
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…