Skip to content

Commit 4c9a4c2

Browse files
authored
Merge pull request #1187 from hexisyztem/dev/Comet
Refactor CUDA stream context management in CosyVoice2Model
2 parents ab74475 + e8a2682 commit 4c9a4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cosyvoice/cli/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def tts(self, text, flow_embedding, llm_embedding=torch.zeros(0, 192),
385385
# this_uuid is used to track variables related to this inference thread
386386
self.synchronize_stream()
387387
stream_context = self.stream_context_pool.get()
388-
with torch.cuda.stream(stream_context):
388+
with stream_context:
389389

390390
this_uuid = str(uuid.uuid1())
391391
with self.lock:

0 commit comments

Comments
 (0)