MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / evaluate_flag

Function evaluate_flag

python/paddle/static/input.py:54–55  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

52
53
54def evaluate_flag(val) -> bool:
55 return str(val).lower() not in ('false', 'off', '0', 'none')
56
57
58@static_only

Callers 1

dataFunction · 0.85

Calls 2

strFunction · 0.85
lowerMethod · 0.80

Tested by

no test coverage detected