Skip to content

Commit 2455bb3

Browse files
authored
Remove redundant chain of types
torch->cuda and cuda->torch, so torch.cuda.torch.cuda actually works. However it looks like (and probably is) a typo.
1 parent 2cac469 commit 2455bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ldm/simplet2i.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def process_image(image,seed):
280280

281281
tic = time.time()
282282
if torch.cuda.is_available():
283-
torch.cuda.torch.cuda.reset_peak_memory_stats()
283+
torch.cuda.reset_peak_memory_stats()
284284
results = list()
285285

286286
try:

0 commit comments

Comments
 (0)