【发布时间】:2020-08-20 07:18:40
【问题描述】:
我正在尝试将 CNN 模型转换为 tflite 模型。我成功转换了它,但是当我尝试加载和运行模型时会发生此错误。 我正在构建一个颤振应用程序。
它会初始化 Tensorflow Lite 运行时,但随后会引发此错误。
I/tflite (27856): Initialized TensorFlow Lite runtime.
E/flutter (27856): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(Failed to load model, Internal error: Unexpected failure when preparing tensor allocations: tensorflow/lite/core/subgraph.cc BytesRequired number of elements overflowed.
E/flutter (27856):
E/flutter (27856): Node number 1 (CONV_2D) failed to prepare.
【问题讨论】: