Repository: pytorch
Issue: NotImplementedError: Output channels > 65536 not supported at the MPS device.
Labels: module: convolution,triaged,module: mps

### 🐛 Describe the bug

I used the newest edited version of this fork and torch==2.7.0.dev,but it just said "NotImplementedError: Output channels > 65536 not supported at the MPS device",instead of giving me a corrrect output.

1.Run the following command :
wav = tts.tts(text="Hello,world!",speaker_wav="project/input/001.wav",language="en")
2.See error:
Traceback (most recent call last):
File "", line 1, in
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/api.py", line 312, in tts
wav = self.synthesizer.tts(
^^^^^^^^^^^^^^^^^^^^^
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/utils/synthesizer.py", line 408, in tts
outputs = self.tts_model.synthesize(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/tts/models/xtts.py", line 410, in synthesize
return self.full_inference(text, speaker_wav, language, **settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/tts/models/xtts.py", line 471, in full_inference
(gpt_cond_latent, speaker_embedding) = self.get_conditioning_latents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/tts/models/xtts.py", line 354, in get_conditioning_latents
speaker_embedding = self.get_speaker_embedding(audio, load_sr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/tts/models/xtts.py", line 309, in get_speaker_embedding
self.hifigan_decoder.speaker_encoder.forward(audio_16k.to(self.device), l2_norm=True)
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/encoder/models/resnet.py", line 167, in forward
x = self.torch_spec(x)
^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/nn/modules/container.py", line 250, in forward
input = module(input)
^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rbhan/Data/StellAIHub/voice/coqui-ai-TTS/TTS/encoder/models/base_encoder.py", line 26, in forward
return torch.nn.functional.conv1d(x, self.filter).squeeze(1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NotImplementedError: Output channels > 65536 not supported at the MPS device.


### Versions

coqui-tts                         0.25.1             ....../coqui-ai-TTS
coqui-tts-trainer                 0.2.2
torch                             2.7.0.dev20250108
torchaudio                        2.6.0.dev20250108
torchvision                       0.22.0.dev20250108

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen