mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-06-30 02:08:15 +08:00
.
This commit is contained in:
parent
f25fcfb0e4
commit
0651cb5d01
@ -692,6 +692,7 @@ class CUDAGraphCacheABC(ABC):
|
||||
self.graph_cache: dict[int, Queue[CUDAGraphStateABC]] = {}
|
||||
|
||||
if torch.cuda.is_available() and torch.version.cuda is not None and os.environ.get("CUDAGraph", "1") != "0":
|
||||
self.graph_cache[1] = Queue()
|
||||
self.create_graph_cache(1)
|
||||
|
||||
def __getitem__(self, bsz: int) -> CUDAGraphStateABC:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user