Forums - qti.aisw.converters.tensorflow.util.ConverterError

2 posts / 0 new
Last post
qti.aisw.converters.tensorflow.util.ConverterError
22imonreal
Join Date: 10 Feb 21
Posts: 80
Posted: Thu, 2021-05-27 02:49

Hello,

I am tring to convert a model to a dlc container but keep getting the following:

qti.aisw.converters.tensorflow.util.ConverterError: build_layer failed with Exception ERROR_TF_LAYER_NO_INPUT_FOUND: Convolution layer conv_deconv_b6_longitude_latitude/efficientnet-b6/block2f_project_conv/Conv2D requires at least one input layer. in layer ConvolutionLayerBuilder

Why would this be and how could I resolve it?

I have read the following:

The reason for the issue is that there is a reshape operation being applied to weights (introduced by tf.layer.dense API). The converter misinterprets it as part of the model execution and hence tries to convert to a layer which it can't since there are no input layers to it.
You can use reshape(tf.reshape API) between a convolution and fully connected to flatten the tensor and it will work fine.
 
Reshape operations to reshape weights are not supported and SNPE fails to convert as it thinks you have a reshape layer in the model which is related to weights and not to the graph computation.We don't currently support tf.layers.dense. It transforms weights and biases in a way that is not currently supported.
I tried using tflearn.layers.fully_connected API in your example and that will work although be aware we don't currently support batchThe issue here is that there is a reshape operation being applied to wheights (introduced by tf.layer.dense API) and the converter missinterprets it as part of the model execution and hence tries to convert to a layer which it can't since there are no input layers to it.
You can use reshape between a convolution and fully connected to flatten the tensor and it will work fine.
 
Thanks


 

 

  • Up0
  • Down0
yuepx1027
Join Date: 21 Nov 16
Posts: 4
Posted: Mon, 2021-06-21 20:53

Hi,

We can get information from the file lodated snpe-1.51.0.2663/lib/python/qti/aisw/converters/tensorflow/common.py

qti.aisw.converters.tensorflow.util.ConverterError: build_layer failed with Exception ERROR_TF_LAYER_NO_INPUT_FOUND: Convolution layer conv_deconv_b6_longitude_latitude/efficientnet-b6/block2f_project_conv/Conv2D requires at least one input layer. in layer ConvolutionLayerBuilder

I think we may double check the inputs of Convolution layer conv_deconv_b6_longitude_latitude/efficientnet-b6/block2f_project_conv/Conv2D

Or test this convolution layer in a model to confirm whether it runs normally.

Thanks

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.