[lite] Add field in toco flags to control enabling tflite variables.

PiperOrigin-RevId: 356001474
Change-Id: Ia109c884aa286e2dc757cad38dc5703daf4fd186
This commit is contained in:
Karim Nosir 2021-02-06 00:51:22 -08:00 committed by TensorFlower Gardener
parent 1fcaed87f6
commit 96b0f783fe

View File

@ -38,7 +38,7 @@ enum FileFormat {
// of as properties of models, instead describing how models are to be
// processed in the context of the present tooling job.
//
// Next ID to use: 34.
// Next ID to use: 35.
message TocoFlags {
// Input file format
optional FileFormat input_format = 1;
@ -230,4 +230,8 @@ message TocoFlags {
// Name of user's defined Tensorflow ops required in the TensorFlow Lite
// runtime. These ops will be supported as select TensorFlow ops.
repeated string select_user_tf_ops = 33;
// Whether to enable tflite resource variables during conversion or not.
// Note: This is an experimental feature.
optional bool enable_tflite_resource_variables = 34;
}