Commit fee994ce authored by CodemodService FBSourceBlackLinterBot's avatar CodemodService FBSourceBlackLinterBot Committed by Facebook GitHub Bot
Browse files

[AutoAccept][Codemod][FBSourceBlackLinter] Daily `arc lint --take BLACK`

Summary:
Meta:
**If you take no action, this diff will be automatically accepted on 2022-06-23.**
(To remove yourself from auto-accept diffs and just let them all land, add yourself to [this Butterfly rule](https://www.internalfb.com/butterfly/rule/904302247110220))

Produced by `tools/arcanist/lint/codemods/black-fbsource`.

#nocancel

Rules run:
- CodemodTransformerSimpleShell

Config Oncall: [lint](https://our.intern.facebook.com/intern/oncall3/?shortname=lint)
CodemodConfig: [CodemodConfigFBSourceBlackLinter](https://www.internalfb.com/code/www/flib/intern/codemod_service/config/fbsource_arc_f/CodemodConfigFBSourceBlackLinter.php)
ConfigType: php
Sandcastle URL: https://www.internalfb.com/intern/sandcastle/job/13510799586951394/
This diff was automatically created with CodemodService.
To learn more about CodemodService, check out the [CodemodService wiki](https://fburl.com/CodemodService).

_____

## Questions / Comments / Feedback?

**[Click here to give feedback about this diff](https://www.internalfb.com/codemod_service/feedback?sandcastle_job_id=13510799586951394).**

* Returning back to author or abandoning this diff will only cause the diff to be regenerated in the future.
* Do **NOT** post in the CodemodService Feedback group about this specific diff.

drop-conflicts

Reviewed By: adamjernst

Differential Revision: D37375235

fbshipit-source-id: 3d7eb39e5c0539a78d1412f37562dec90b0fc759
parent b92a8a09
......@@ -5,13 +5,7 @@ import torch
import torchaudio.transforms as T
from parameterized import parameterized
from torch.autograd import gradcheck, gradgradcheck
from torchaudio_unittest.common_utils import (
get_spectrogram,
get_whitenoise,
nested_params,
rnnt_utils,
TestBaseMixin,
)
from torchaudio_unittest.common_utils import get_spectrogram, get_whitenoise, nested_params, rnnt_utils, TestBaseMixin
class _DeterministicWrapper(torch.nn.Module):
......
......@@ -4,13 +4,7 @@ import torch
import torchaudio.transforms as T
from parameterized import param, parameterized
from torchaudio._internal.module_utils import is_module_available
from torchaudio_unittest.common_utils import (
get_sinusoid,
get_spectrogram,
get_whitenoise,
nested_params,
TestBaseMixin,
)
from torchaudio_unittest.common_utils import get_sinusoid, get_spectrogram, get_whitenoise, nested_params, TestBaseMixin
LIBROSA_AVAILABLE = is_module_available("librosa")
......
......@@ -2,12 +2,7 @@ import torch
import torchaudio.transforms as T
from parameterized import param, parameterized
from torchaudio.functional.functional import _get_sinc_resample_kernel
from torchaudio_unittest.common_utils import (
get_spectrogram,
get_whitenoise,
nested_params,
TestBaseMixin,
)
from torchaudio_unittest.common_utils import get_spectrogram, get_whitenoise, nested_params, TestBaseMixin
from torchaudio_unittest.common_utils.psd_utils import psd_numpy
......
......@@ -93,9 +93,7 @@ def _main(args):
import torch
import torchaudio
from torchaudio.models.wav2vec2.utils.import_fairseq import (
_convert_state_dict as _convert,
)
from torchaudio.models.wav2vec2.utils.import_fairseq import _convert_state_dict as _convert
cfg, state_dict = _load(args.input_file)
params = _parse_model_param(cfg, state_dict)
......
......@@ -2,11 +2,7 @@ import math
from typing import List, Optional, Tuple
import torch
from torchaudio.models.emformer import (
_EmformerAttention,
_EmformerImpl,
_get_weight_init_gains,
)
from torchaudio.models.emformer import _EmformerAttention, _EmformerImpl, _get_weight_init_gains
def _get_activation_module(activation: str) -> torch.nn.Module:
......
from torchaudio._internal import module_utils as _mod_utils
from .sox_effects import (
apply_effects_file,
apply_effects_tensor,
effect_names,
init_sox_effects,
shutdown_sox_effects,
)
from .sox_effects import apply_effects_file, apply_effects_tensor, effect_names, init_sox_effects, shutdown_sox_effects
if _mod_utils.is_sox_available():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment