Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
keisen committed Mar 25, 2024
1 parent 135aef2 commit 35da52e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tf_keras_vis/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,8 @@ def lower_precision_dtype(model):


def get_input_names(model):
return [input.name for input in model.inputs]
if version(tf.version.VERSION) >= version("2.4.0"):
names = [input.name for input in model.inputs]
else:
names = model.input_names
return names

0 comments on commit 35da52e

Please sign in to comment.