import torch


def normalize_0_1(input: torch.Tensor) -> torch.Tensor:
    """
    Normalize a given tensor to a range of [0, 1]
    :param input: (Torch tensor) Input tensor
    :param inplace: (bool) If true normalization is performed inplace
    :return: (Torch tensor) Normalized output tensor
    """
    # Perform normalization not inplace
    return (input - input.min()) / (input.max() - input.min())