Skip to content

Exception when converting to TFLiteModel #7

@alastor09

Description

@alastor09

I was using the file "13.time-series-human_activity_recognition.ipynb"

And trying to convert the model to TfLite so that i can use it in Android Project am getting an exception.

Using Below code.

converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()

# Save the model.
with open('model.tflite', 'wb') as f:
  f.write(tflite_model)

If you can suggest what could be the issue.

Observe the same issue for

model.save("./")

converter = tf.lite.TFLiteConverter.from_saved_model("./")
tflite_model = converter.convert()

converter.convert() is the line which throws

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