[CPU][CI] Re-enable the CPU CI tests (#19046)
Signed-off-by: jiang.li <jiang1.li@intel.com>
This commit is contained in:
@@ -1203,7 +1203,8 @@ def cleanup_dist_env_and_memory(shutdown_ray: bool = False):
|
||||
if empty_cache is not None:
|
||||
empty_cache()
|
||||
try:
|
||||
torch._C._host_emptyCache()
|
||||
if not current_platform.is_cpu():
|
||||
torch._C._host_emptyCache()
|
||||
except AttributeError:
|
||||
logger.warning(
|
||||
"torch._C._host_emptyCache() only available in Pytorch >=2.5")
|
||||
|
||||
Reference in New Issue
Block a user