Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
def
evaluate_flag(val) -> bool:
55
return
str(val).lower() not in (
'false'
,
'off'
,
'0'
,
'none'
)
56
57
58
@static_only
Callers
1
data
Function · 0.85
Calls
2
str
Function · 0.85
lower
Method · 0.80
Tested by
no test coverage detected