Skip to content

Commit

Permalink
double check optimum
Browse files Browse the repository at this point in the history
  • Loading branch information
philschmid committed Jun 27, 2023
1 parent 6a368d4 commit 94c484c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sagemaker_huggingface_inference_toolkit/optimum_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
import os


_optimum_neuron = importlib.util.find_spec("optimum.neuron") is not None
_optimum_neuron = False
if importlib.util.find_spec("optimum") is not None:
if importlib.util.find_spec("optimum.neuron") is not None:
_optimum_neuron = True

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 94c484c

Please sign in to comment.