How to ensure static shapes in Tensorflow model for easy OpenVINO conversion?
You can have dynamic shapes in TF model and provide static shape while cnverting model with ModelOptimizer. Example for input data of size 256x256 with 3 channels.
python mo_tf.py --input_shape [1,256,256,3] --input_model model.pb
I'm trying to optimize and convert a tensorflow model to OpenVINO IR. It hasn't been very successful because of the problems I'm facing with input shapes. So I'm planning to remodel the whole model with static shapes. The model I'm trying to work on is Tacotron by keithito.
How do I ensure all the nodes in my model will have static shapes?
Will just setting the input placeholder nodes to a fixed shape allow tensorflow to infer and fix the shapes of all other nodes?