Skip to content

Commit

Permalink
Move ort import within function (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Jan 22, 2024
1 parent 27db537 commit 805d2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparseml/export/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from typing import Callable, List, Optional, Union

import numpy
import onnxruntime as ort

from sparseml.export.export_data import InputsNames, LabelNames, OutputsNames
from sparseml.export.helpers import ONNX_MODEL_NAME
Expand Down Expand Up @@ -134,6 +133,7 @@ def validate_correctness(
:param validation_function: The function that will be used to validate the outputs.
:return: True if the validation passes, False otherwise.
"""
import onnxruntime as ort

sample_inputs_path = os.path.join(target_path, InputsNames.basename.value)
sample_outputs_path = os.path.join(target_path, OutputsNames.basename.value)
Expand Down

0 comments on commit 805d2fc

Please sign in to comment.