Skip to content

Commit

Permalink
add hummingbird installed method (#134)
Browse files Browse the repository at this point in the history
Co-authored-by: Wenbing Li <[email protected]>
  • Loading branch information
interesaaat and wenbingl authored Jul 8, 2020
1 parent c29e444 commit 5f453a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions onnxconverter_common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ def h2o_installed():
return True


def hummingbird_installed():
"""
Checks that *Hummingbird* is available.
"""
try:
import hummingbird.ml # noqa: F401

return True
except ImportError:
return False


def get_producer():
"""
Internal helper function to return the producer
Expand Down

0 comments on commit 5f453a7

Please sign in to comment.