File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
- 7d7c14e898eca3fe66138d2a9445755a9270b800
1
+ 2e032c6b0de960dee554dcb08126ace718b14c6d
Original file line number Diff line number Diff line change @@ -832,6 +832,7 @@ def quantized_model(self) -> nn.Module:
832
832
libs = glob .glob (f"{ torchao_build_path } /cmake-out/lib/libtorchao_ops_aten.*" )
833
833
libs = list (filter (lambda l : (l .endswith ("so" ) or l .endswith ("dylib" )), libs ))
834
834
torch .ops .load_library (libs [0 ])
835
+ print ("Loaded torchao cpu ops." )
835
836
except Exception as e :
836
837
print (
837
838
"Unabled to load torchao cpu ops library. Slow fallback kernels will be used."
@@ -841,6 +842,7 @@ def quantized_model(self) -> nn.Module:
841
842
libname = "libtorchao_ops_mps_aten.dylib"
842
843
libpath = f"{ torchao_build_path } /cmake-out/lib/{ libname } "
843
844
torch .ops .load_library (libpath )
845
+ print ("Loaded torchao mps ops." )
844
846
except Exception as e :
845
847
print ("Unabled to load torchao mps ops library." )
846
848
You can’t perform that action at this time.
0 commit comments