Skip to content

Commit

Permalink
Fix for Falcon error from PR #587 (#608)
Browse files Browse the repository at this point in the history
* Fix for Falcon error from PR #587

* Reformatted
  • Loading branch information
schoi-habana authored Dec 21, 2023
1 parent 223a63c commit cba7f00
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 cba7f00

Please sign in to comment.