Add graph runner support with torch compile on CPU (#7843)
This commit is contained in:
@@ -230,8 +230,16 @@ except:
|
||||
is_intel_amx_backend_available = False
|
||||
|
||||
|
||||
try:
|
||||
# move torch._C._cpu._is_amx_tile_supported() from cpu_has_amx_support
|
||||
# to support torch compile
|
||||
is_amx_tile_supported = torch._C._cpu._is_amx_tile_supported()
|
||||
except:
|
||||
is_amx_tile_supported = False
|
||||
|
||||
|
||||
def cpu_has_amx_support():
|
||||
return torch._C._cpu._is_amx_tile_supported() and is_intel_amx_backend_available
|
||||
return is_amx_tile_supported and is_intel_amx_backend_available
|
||||
|
||||
|
||||
def use_intel_amx_backend(layer):
|
||||
|
||||
Reference in New Issue
Block a user