MCPcopy 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
82def 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
90def to_numpy(var):

Callers 12

test_mainMethod · 0.90
_runMethod · 0.70
_make_programMethod · 0.70
_runMethod · 0.70
_make_programMethod · 0.70
train_batchMethod · 0.70
eval_batchMethod · 0.70
predict_batchMethod · 0.70
prepareMethod · 0.70
_run_one_epochMethod · 0.70
_verify_specMethod · 0.70
_metrics_nameMethod · 0.70

Calls 1

listFunction · 0.85

Tested by 1

test_mainMethod · 0.72