# scalar_to_support¶

class maze.train.trainers.common.value_transform.scalar_to_support(scalar: torch.Tensor, support_range: Tuple[int, int])

Converts tensor of scalars into probability support vectors corresponding to the provided range.

Parameters
• scalar – Tensor of scalars to be converted

• support_range – Tuple holding the lower and upper bound of the supported value range.

Returns

Tensor of support vectors.