Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
update ipex api
Browse files Browse the repository at this point in the history
Signed-off-by: intellinjun <[email protected]>
  • Loading branch information
intellinjun committed Jul 3, 2024
1 parent fdd4d34 commit a1c847e
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,15 +845,6 @@ def load_model(
dtype=torch_dtype,
inplace=True,
)
except AssertionError:
model = intel_ipex.optimize(
model.eval(),
dtype=torch_dtype,
inplace=True,
level="O1",
auto_kernel_selection=True,
weights_prepack=False,
)
except Exception as e:
logging.info(f"IPEX optimize failure! Skip IPEX.")
model = model.eval()
Expand Down

0 comments on commit a1c847e

Please sign in to comment.