[bug] continue fix

pull/5749/head
hxwang 2024-05-28 02:41:23 +00:00
parent 936dd96dbb
commit e5e3320948
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class AutoPlacementPolicy(PlacementPolicy):
f"Adjust layout failed! No enough CUDA memory! "
f"Need {to_free_cuda_model_data}, freed {freed_cuda_model_data}"
)
self.__avail_cuda_model_data_for_prefetch = avail_cuda_model_data - freed_cuda_model_data
self.__avail_cuda_model_data_for_prefetch = avail_cuda_model_data + freed_cuda_model_data
return freed_cuda_model_data, time() - start
@staticmethod