【问题标题】:Converting TFRS to the tflite model将 TFRS 转换为 tflite 模型
【发布时间】:2021-08-08 17:33:42
【问题描述】:

我是 Tensorflow 的新手,我需要将 TFRS 转换为 tflite 模型。有没有人对此主题有任何想法或经验?

我只是运行 Colab 的检索代码。 并添加了将最终模型转换为 tflite 的推荐方法。那是:

converter = tf.lite.TFLiteConverter.from_saved_model(path) # SavedModel 目录的路径 tflite_model = converter.convert()

您可以在下图中看到错误。

enter image description here

【问题讨论】:

  • 嗨!您能否提供一个示例独立代码作为 Colab 的要点以加快解决问题?

标签: tensorflow artificial-intelligence recommendation-engine recommender-systems


【解决方案1】:

尝试下载最新的tf-nightly pip,然后使用新的 MLIR 转换器转换此模型。您可以通过设置启用新转换器:

converter.experimental_new_converter = True

【讨论】:

    猜你喜欢
    • 2021-09-27
    • 1970-01-01
    • 2021-01-24
    • 1970-01-01
    • 2019-05-06
    • 2021-02-13
    • 2019-09-05
    • 2020-08-24
    • 2020-12-03
    相关资源
    最近更新 更多