Skip to content

Commit

Permalink
run isort
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Flynn committed Oct 19, 2024
1 parent 0869c6c commit ca1d5fd
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions tests/models/encodec/test_modeling_encodec.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,32 @@
import copy
import inspect
import os
import random
import tempfile
import unittest
import torchaudio
import random
import torch.nn.functional as F

import numpy as np
import torch.nn.functional as F
import torchaudio
from datasets import Audio, load_dataset

from transformers import AutoProcessor, EncodecConfig
from transformers.models.encodec.loss_encodec import (
Balancer,
compute_discriminator_loss,
compute_generator_adv_loss,
compute_feature_matching_loss,
)

from transformers.testing_utils import (
is_torch_available,
require_torch,
slow,
torch_device,
)
Balancer, compute_discriminator_loss, compute_feature_matching_loss,
compute_generator_adv_loss)
from transformers.testing_utils import (is_torch_available, require_torch,
slow, torch_device)

from ...test_configuration_common import ConfigTester
from ...test_modeling_common import ModelTesterMixin, _config_zero_init, floats_tensor, ids_tensor
from ...test_modeling_common import (ModelTesterMixin, _config_zero_init,
floats_tensor, ids_tensor)
from ...test_pipeline_mixin import PipelineTesterMixin


if is_torch_available():
import torch

from transformers import EncodecDiscriminator, EncodecDiscriminatorConfig, EncodecModel
from transformers import (EncodecDiscriminator, EncodecDiscriminatorConfig,
EncodecModel)

def prepare_inputs_dict(
config,
Expand Down

0 comments on commit ca1d5fd

Please sign in to comment.