Skip to content

ValueError: Invalid tensors 'input' were found. #3

@md-rifatkhan

Description

@md-rifatkhan

All works fine till using

converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model(pb_path,
                                                      input_arrays=input_nodes,
                                                      output_arrays=output_nodes,
                                                               )
tflite_rep = converter.convert()

log

[/usr/local/lib/python3.10/dist-packages/tensorflow/lite/python/util.py](https://localhost:8080/#) in get_tensors_from_tensor_names(graph, tensor_names)
    164   # Throw ValueError if any user input names are not valid tensors.
    165   if invalid_tensors:
--> 166     raise ValueError("Invalid tensors '{}' were found.".format(
    167         ",".join(invalid_tensors)))
    168   return tensors

ValueError: Invalid tensors 'input' were found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions