def testTargetOps(self): model = self._getSingleInputKerasModel() keras_file = self._saveKerasModel(model) model_coverage.test_keras_model( keras_file, target_ops=set([lite.OpsSet.TFLITE_BUILTINS, lite.OpsSet.SELECT_TF_OPS]))
def testConverterMode(self): model = self._getSingleInputKerasModel() keras_file = self._saveKerasModel(model) model_coverage.test_keras_model( keras_file, converter_mode=lite.ConverterMode.TOCO_EXTENDED)
def testPostTrainingQuantize(self): model = self._getSingleInputKerasModel() keras_file = self._saveKerasModel(model) model_coverage.test_keras_model(keras_file, post_training_quantize=True)
def testFloat(self): model = self._getSingleInputKerasModel() keras_file = self._saveKerasModel(model) model_coverage.test_keras_model(keras_file)
def testConverterMode(self): model = self._getSingleInputKerasModel() keras_file = self._saveKerasModel(model) model_coverage.test_keras_model( keras_file, converter_mode=lite.ConverterMode.TOCO_FLEX)