Update vision.py
This commit is contained in:
parent
4aaa1e269a
commit
0ca1be0097
1 changed files with 0 additions and 5 deletions
|
|
@ -437,11 +437,6 @@ class FastBaseModel:
|
|||
if custom_datatype is not None:
|
||||
for jj, (name, module) in enumerate(model.named_modules()):
|
||||
exec(custom_datatype)
|
||||
if jj % 10 == 0:
|
||||
gc.collect()
|
||||
if DEVICE_TYPE == "cuda": torch.cuda.empty_cache()
|
||||
elif DEVICE_TYPE == "xpu": torch.xpu.empty_cache()
|
||||
pass
|
||||
pass
|
||||
# Clear deleted GPU items
|
||||
for _ in range(3):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue