concepts.dm.pdsketch.regression_utils.cvt_single_optimistic_value_or_list#

cvt_single_optimistic_value_or_list(x)[source]#

Convert a single optimistic value stored in a TensorValue to an OptimisticValue. If the input is a list of TensorValue’s, convert them to a list of OptimisticValue’s.

Parameters:

x (ListValue | TensorValue)

Return type:

ListValue | OptimisticValue