import torch


def shuffle_data(input_, target_):
    """Shuffles the input and the target in the same way."""
    my_randperm =torch.randperm(input_.size(0))
    return input_[my_randperm], target_[my_randperm]