[DummyLSTM] Add Dummy LSTM custom example
authorjijoong.moon <jijoong.moon@samsung.com>
Wed, 28 Nov 2018 02:33:42 +0000 (11:33 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Thu, 29 Nov 2018 07:57:43 +0000 (07:57 +0000)
commit88167726f2403a18941cdc4828c00ef4f46db431
tree21bad0266b92ddc62cfaf3e0116507a991ffd3af
parentebda5cfcd4d070d465141a803e9e3b3a4744dfcf
[DummyLSTM] Add Dummy LSTM custom example

Add Dymmy LSTM custom example. Two input stream and two outputstream.
First input is recursion and Second input is new input stream. First
output is recursion stream which is matched with first inputstream and
the second output stream is matched with second input stream.

 - in2_tmp0 = (in2+in1)/2 (in2_tmp0 : mimic sigmoid)
 - in2_tmp1 = tanh(in2)
 - in0 = in0 x in2_tmp0
 - in0 = in0 + (in2_tmp0 x in2_tmp1)
 - out0 = in0
 - out1 = in1 = (tanh(in0) x in2_tmp0)

                     +------------+
         in0 ------->|            |----> out0
         in1 ------->| dummy LSTM |----> out1
         in2 (new)-->|            |  |
                     +------------+  +--> out (equal out1)

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
nnstreamer_example/CMakeLists.txt
nnstreamer_example/custom_example_LSTM/CMakeLists.txt [new file with mode: 0644]
nnstreamer_example/custom_example_LSTM/dummy_LSTM.c [new file with mode: 0644]