Skip to content

Commit

Permalink
Raise exception when we fail to detect the model's framework
Browse files Browse the repository at this point in the history
  • Loading branch information
philferriere committed Nov 28, 2018
1 parent 2daeadf commit 28d791e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hiddenlayer/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def build_graph(model=None, args=None, input_names=None,
elif framework == "tensorflow":
from .tf_builder import import_graph, FRAMEWORK_TRANSFORMS
import_graph(g, model)

else:
raise ValueError("`model` input param must be a PyTorch, TensorFlow, or Keras-with-TensorFlow-backend model.")

# Apply Transforms
if framework_transforms:
if framework_transforms == "default":
Expand Down

0 comments on commit 28d791e

Please sign in to comment.