olive 0.4.x support

This commit is contained in:
Seunghoon Lee
2024-01-13 23:31:43 +09:00
parent 701c6564ed
commit f5a7a53dbd
+8 -2
View File
@@ -146,7 +146,10 @@ class OnnxRawPipeline(OnnxPipelineBase):
try:
from olive.workflows import run
from olive.model import ONNXModel
try:
from olive.model import ONNXModel
except ImportError:
from olive.model import ONNXModelHandler as ONNXModel
shutil.rmtree("cache", ignore_errors=True)
shutil.rmtree("footprints", ignore_errors=True)
@@ -252,7 +255,10 @@ class OnnxRawPipeline(OnnxPipelineBase):
try:
from olive.workflows import run
from olive.model import ONNXModel
try:
from olive.model import ONNXModel
except ImportError:
from olive.model import ONNXModelHandler as ONNXModel
shutil.rmtree("cache", ignore_errors=True)
shutil.rmtree("footprints", ignore_errors=True)