Forums - Recurent Neural Network Layers

8 posts / 0 new
Last post
Recurent Neural Network Layers
babbage
Join Date: 21 Feb 17
Posts: 9
Posted: Wed, 2017-10-25 07:34

Does SNPE support converting recurrent neural network layers such as LSTM or GRU from Tensorflow models to DLC?

  • Up0
  • Down0
bspinar
Join Date: 4 Feb 15
Posts: 21
Posted: Wed, 2017-11-01 16:24

Thanks for checking out SNPE. Unfortunately, this is not supported in the current SNPE version. While it is our policy not to discuss our roadmap in the forums, we are actively looking at providing LSTM support (including conversion from Tensorflow models).

  • Up0
  • Down0
kimiraikkonen
Join Date: 11 Aug 15
Posts: 2
Posted: Tue, 2017-12-05 22:05

Is it supported now on v1.8?

  • Up0
  • Down0
bspinar
Join Date: 4 Feb 15
Posts: 21
Posted: Thu, 2017-12-07 12:30

Yes. There is LSTM support in 1.8 on the GPU and CPU (no DSP runtime support yet, however).

  • Up0
  • Down0
qjv001
Join Date: 7 Sep 12
Location: Chicago, IL
Posts: 3
Posted: Fri, 2018-04-27 13:08

Do you guys have any examples where an LSTM is used? Could you add a few examples to the SNPE SDK?

  • Up0
  • Down0
atul.rahman
Join Date: 14 Nov 16
Posts: 3
Posted: Fri, 2018-06-01 00:21

How to convert LSTM.pb file to .dlc file?

What should be the --input_dim ?
The LSTM model uses wav_data as input layer. Its trained with tensorflow and runs through tensorflow API on android.

  • Up0
  • Down0
349074299
Join Date: 13 Sep 17
Posts: 8
Posted: Tue, 2018-08-14 02:47

       does antone convert sucess?

       i  convert tensorflow model with lstm ,but my dlc file is 1KB. i dont know why. But  if i set output node name before lstm ,it can convert sucess !!! SNPE version is 1.17.0

       the lstm ops i use is :

                      rnn_cell_h18 = tf.contrib.rnn.BasicLSTMCell(num_units=1422, forget_bias=0.0)

                      layer_h18, states_18 = tf.nn.static_rnn(rnn_cell_h18, layer_h16, dtype=tf.float32)
  • Up0
  • Down0
qttiot
Join Date: 4 Dec 18
Posts: 2
Posted: Mon, 2019-07-29 11:23

Hi there! Is it possible to convert recurrent neural network layers (LSTM or GRU) from Tensorflow models to DLC? I'm using SNPE v1.27.1.

Thanks in advance.

  • 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.