Skip to content

Commit

Permalink
Fix for Falcon error from PR #587
Browse files Browse the repository at this point in the history
  • Loading branch information
schoi-habana committed Dec 20, 2023
1 parent 21238af commit 230e9ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion optimum/habana/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ def check_habana_frameworks_version(req_version):
"""
Checks if the installed version of `habana_frameworks` is equal to `req_version`.
"""
return get_habana_frameworks_version() == version.parse(req_version)
return (
get_habana_frameworks_version().major == version.parse(req_version).major
) and (get_habana_frameworks_version().minor == version.parse(req_version).minor)


def get_device_name():
Expand Down

0 comments on commit 230e9ad

Please sign in to comment.