MCPcopy 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
95def strtobool(s):
96 if s.lower() in ["", "0", "false", "off"]:
97 return False
98 return True
99
100
101def parse_test_module(test):

Callers 1

parse_argsFunction · 0.85

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…