Forums - Get name of Layer corresponding to type Softmax

1 post / 0 new
Get name of Layer corresponding to type Softmax
naveen.francis
Join Date: 9 Aug 17
Posts: 21
Posted: Wed, 2017-08-09 04:47

Hi,

Could someone explain how I could get the name of the layer that is of type "Softmax"? Or simply to get the name of the last layer in the network.

I tried printing the names using the getTensorNames function, but the layer names are not in order as specified in the prototxt file. The snpe->getOutputLayerNames function also prints the order differently, it seems to be doing it alphabetically. If the names were in order, I could have got the name of the last layer by iterating to the end of the string list, but since that's not the case, I'm not sure how to perform this operation.

Some sample code with reference to the example Native CPP code that comes with the snpe SDK would be helpful.

Thanks,

Naveen

 

  • Up0
  • Down0

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.