Hi all,I'm trying to convert my TF model (which uses a custom layer where I use for loops, if statements and tf.Variable) to a TF Lite file, but I obtain this error:"Failed to functionalize Control Flow V1 ops. Consider using Control Flow V2 ops instead
tf.compat.v1.enable_control_flow_v2()."I'm using Tensorflow 2.6.0. Where should I use tf.compat.v1.enable_control_flow_v2()? Before I try to convert with TF Lite converter or in another part of the code? I have made several attempts, but for now the error don't disappear.--
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tflite+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/a6f37420-21bf-429a-8042-783385f4267cn%40tensorflow.org.