import torch


def formatData(data):
    """
    Returns tensor of image.

        Parameters:
            data (2d numpy array): A numpy array containing infrared intensity values.
        
        Returns:
            tens (pytorch tensor): Normalized 2d tensor of infrared image.
    """
    tens = torch.tensor([[data/255.0]]).to(dtype=torch.float)
    return(tens)