_coerce_to_list#

pytorch_forecasting.utils._coerce._coerce_to_list(obj)[source]#

Coerce object to list.

None is coerced to empty list, otherwise list constructor is used.