Skip to content

Commit

Permalink
make style
Browse files Browse the repository at this point in the history
Signed-off-by: xinhe3 <[email protected]>
  • Loading branch information
xinhe3 committed Nov 26, 2024
1 parent 5c5d38c commit 962b49b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/text-generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
)
from optimum.habana.utils import (
check_habana_frameworks_version,
check_neural_compressor_min_version,
check_optimum_habana_min_version,
get_habana_frameworks_version,
check_neural_compressor_min_version,
set_seed,
)

Expand Down
1 change: 1 addition & 0 deletions optimum/habana/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ def check_neural_compressor_min_version(req_version):
Checks if the installed version of `neural_compressor` is larger than or equal to `req_version`.
"""
import neural_compressor

return version.Version(neural_compressor.__version__) >= version.Version(req_version)


Expand Down

0 comments on commit 962b49b

Please sign in to comment.