Mo indices fix (#12842)
* Fixed error in indeces processing. * Small correction * Small correction
This commit is contained in:
parent
885d57424c
commit
e0974b1e4c
@ -257,7 +257,7 @@ def load_tf_graph_def(graph_file_name: str = "", is_binary: bool = True, checkpo
|
||||
tf_v1.disable_eager_execution()
|
||||
|
||||
input_names = []
|
||||
if hasattr(imported, 'inputs'):
|
||||
if hasattr(imported, 'inputs') and imported.inputs is not None:
|
||||
# Extract tensor names order from Keras model
|
||||
input_names = [tensor.name for tensor in imported.inputs]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user