Mo indices fix (#12842)

* Fixed error in indeces processing.

* Small correction

* Small correction
This commit is contained in:
Anastasia Popova 2022-09-01 15:03:09 +02:00 committed by GitHub
parent 885d57424c
commit e0974b1e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]