to_list#

pytorch_forecasting.utils._utils.to_list(value: Any) List[Any][source]#

Convert value or list to list of values. If already list, return object directly

Parameters:

value (Any) – value to convert

Returns:

list of values

Return type:

List[Any]