You could transform the numpy array to a tensor via:
data = torch.from_numpy(array)

Depending on the dtype of the numpy array you might need to transform the tensor to a FloatTensor using:
data = data.float()