I'm trying to convert a keras TensorFlow model from .pb to .dlc format using snpe-tensorflow-to-dlc.
My model is basically tensorflow.keras.applications.inception_v3.
When I run
snpe-tensorflow-to-dlc --input_network model.pb --input_dim input_1 "1,128,128,3" --out_node "final_output/Softmax" --output_path model.dlc
I get the error "Conversion failed: ERROR_TF_BATCHNORM_GLOBALNORMALIZATION_INPUT: Cannot resolve BatchNorm layer due to BatchNormWithGlobalNormalization node not having at least 4 const inputs (mean, variance, beta, scale)."
Does anyone know how to fix this? Is it because batchnorm has some trainable (non-const) parameters even after training?
(SNPE 1.40.0 and TensorFlow 1.15)