我是TF的新手,我有一个好奇心:如果我不得不将一个使用TF Lite不支持的op的Keras模型转换到TF Lite,并且必须注册,我如何使用转换器来转换模型并强制它自己同时允许自定义操作()?例如,假设我们有一个非常简单的模型,并假设Conv2D是TF Lite不支持的op:from tensorflow import keras
from tensorflow.keras
from tflite_support.metadata_writers import object_detectorprint(displayer.get_packed_associated_file_list())
我使用了以下链接Github:中的代码以下是运行上述代码后出现的错误。ModuleNotFoundError:没有
我有一个名为"model.h5“的TensorFlow Keras模块。我想从它生成tflite。为此,我使用了下面提到的代码。我使用的是tensorflow版本'2.0.0‘。dataset so we can quantize the activationstflite_model= converter.convert()
with open('mob