def to_numpy(tensor):
    """Convert 3-D torch tensor to a 3-D numpy array.

    Args:
        tensor: Tensor to be converted.
    """
    return tensor.transpose(0, 1).transpose(1, 2).clone().numpy()