From 84ec37fb58ebea5fdeeb870c5e68b86b89dc6dd6 Mon Sep 17 00:00:00 2001 From: Nupur Garg Date: Mon, 23 Sep 2019 13:55:09 -0700 Subject: [PATCH] Remove use of target_ops. PiperOrigin-RevId: 270753282 --- tensorflow/lite/python/tflite_convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/lite/python/tflite_convert.py b/tensorflow/lite/python/tflite_convert.py index 7be355954f3..8f4b62c14d6 100644 --- a/tensorflow/lite/python/tflite_convert.py +++ b/tensorflow/lite/python/tflite_convert.py @@ -170,7 +170,7 @@ def _convert_tf1_model(flags): converter.allow_custom_ops = flags.allow_custom_ops if flags.target_ops: ops_set_options = lite.OpsSet.get_options() - converter.target_ops = set() + converter.target_spec.supported_ops = set() for option in flags.target_ops.split(","): if option not in ops_set_options: raise ValueError("Invalid value for --target_ops. Options: "