Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Paddle
/ to_list
Function
to_list
python/paddle/hapi/model.py:82–87 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
80
81
82
def
to_list(value):
83
if
value is None:
84
return
value
85
if
isinstance(value, (list, tuple)):
86
return
list(value)
87
return
[value]
88
89
90
def
to_numpy(var):
Callers
12
test_main
Method · 0.90
_run
Method · 0.70
_make_program
Method · 0.70
_run
Method · 0.70
_make_program
Method · 0.70
train_batch
Method · 0.70
eval_batch
Method · 0.70
predict_batch
Method · 0.70
prepare
Method · 0.70
_run_one_epoch
Method · 0.70
_verify_spec
Method · 0.70
_metrics_name
Method · 0.70
Calls
1
list
Function · 0.85
Tested by
1
test_main
Method · 0.72