We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Use of deprecated `AutoNonVariableTypeMode`.
`AutoNonVariableTypeMode` is deprecated and will be removed in PyTorch 1.10.

https://github.com/pytorch/audio/search?q=AutoNonVariableTypeMode

Migration: https://github.com/pytorch/pytorch/blob/master/docs/cpp/source/notes/inference_mode.rst#migration-guide-from-autononvariabletypemode

cc @carolineechen 

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `torchaudio/__init__.py`
Content:
```
1 from . import extension  # noqa: F401
2 from torchaudio._internal import module_utils as _mod_utils  # noqa: F401
3 from torchaudio import (
4     compliance,
5     datasets,
6     functional,
7     kaldi_io,
8     utils,
9     sox_effects,
10     transforms,
11 )
12 
13 from torchaudio.backend import (
14     list_audio_backends,
15     get_audio_backend,
16     set_audio_backend,
17 )
18 
19 try:
20     from .version import __version__, git_version  # noqa: F401
21 except ImportError:
22     pass
23 
24 __all__ = [
25     'compliance',
26     'datasets',
27     'functional',
28     'kaldi_io',
29     'utils',
30     'sox_effects',
31     'transforms',
32     'list_audio_backends',
33     'get_audio_backend',
34     'set_audio_backend',
35     'save_encinfo',
36     'sox_signalinfo_t',
37     'sox_encodinginfo_t',
38     'get_sox_option_t',
39     'get_sox_encoding_t',
40     'get_sox_bool',
41     'SignalInfo',
42     'EncodingInfo',
43 ]
44
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/torchaudio/__init__.py b/torchaudio/__init__.py
--- a/torchaudio/__init__.py
+++ b/torchaudio/__init__.py
@@ -32,12 +32,4 @@
     'list_audio_backends',
     'get_audio_backend',
     'set_audio_backend',
-    'save_encinfo',
-    'sox_signalinfo_t',
-    'sox_encodinginfo_t',
-    'get_sox_option_t',
-    'get_sox_encoding_t',
-    'get_sox_bool',
-    'SignalInfo',
-    'EncodingInfo',
 ]

{"golden_diff": "diff --git a/torchaudio/__init__.py b/torchaudio/__init__.py\n--- a/torchaudio/__init__.py\n+++ b/torchaudio/__init__.py\n@@ -32,12 +32,4 @@\n     'list_audio_backends',\n     'get_audio_backend',\n     'set_audio_backend',\n-    'save_encinfo',\n-    'sox_signalinfo_t',\n-    'sox_encodinginfo_t',\n-    'get_sox_option_t',\n-    'get_sox_encoding_t',\n-    'get_sox_bool',\n-    'SignalInfo',\n-    'EncodingInfo',\n ]\n", "issue": "Use of deprecated `AutoNonVariableTypeMode`.\n`AutoNonVariableTypeMode` is deprecated and will be removed in PyTorch 1.10.\r\n\r\nhttps://github.com/pytorch/audio/search?q=AutoNonVariableTypeMode\r\n\r\nMigration: https://github.com/pytorch/pytorch/blob/master/docs/cpp/source/notes/inference_mode.rst#migration-guide-from-autononvariabletypemode\r\n\r\ncc @carolineechen \n", "before_files": [{"content": "from . import extension  # noqa: F401\nfrom torchaudio._internal import module_utils as _mod_utils  # noqa: F401\nfrom torchaudio import (\n    compliance,\n    datasets,\n    functional,\n    kaldi_io,\n    utils,\n    sox_effects,\n    transforms,\n)\n\nfrom torchaudio.backend import (\n    list_audio_backends,\n    get_audio_backend,\n    set_audio_backend,\n)\n\ntry:\n    from .version import __version__, git_version  # noqa: F401\nexcept ImportError:\n    pass\n\n__all__ = [\n    'compliance',\n    'datasets',\n    'functional',\n    'kaldi_io',\n    'utils',\n    'sox_effects',\n    'transforms',\n    'list_audio_backends',\n    'get_audio_backend',\n    'set_audio_backend',\n    'save_encinfo',\n    'sox_signalinfo_t',\n    'sox_encodinginfo_t',\n    'get_sox_option_t',\n    'get_sox_encoding_t',\n    'get_sox_bool',\n    'SignalInfo',\n    'EncodingInfo',\n]\n", "path": "torchaudio/__init__.py"}], "after_files": [{"content": "from . import extension  # noqa: F401\nfrom torchaudio._internal import module_utils as _mod_utils  # noqa: F401\nfrom torchaudio import (\n    compliance,\n    datasets,\n    functional,\n    kaldi_io,\n    utils,\n    sox_effects,\n    transforms,\n)\n\nfrom torchaudio.backend import (\n    list_audio_backends,\n    get_audio_backend,\n    set_audio_backend,\n)\n\ntry:\n    from .version import __version__, git_version  # noqa: F401\nexcept ImportError:\n    pass\n\n__all__ = [\n    'compliance',\n    'datasets',\n    'functional',\n    'kaldi_io',\n    'utils',\n    'sox_effects',\n    'transforms',\n    'list_audio_backends',\n    'get_audio_backend',\n    'set_audio_backend',\n]\n", "path": "torchaudio/__init__.py"}]}