[Example] Change LSTM to RNN
authorjijoong.moon <jijoong.moon@samsung.com>
Mon, 26 Nov 2018 01:40:42 +0000 (10:40 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Mon, 26 Nov 2018 02:47:22 +0000 (02:47 +0000)
It is more like RNN rather than LSTM. RNN is better name for this testcase.

**Changes proposed in this PR:**
- Change directory name and files LSTM to RNN

**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_RNN/CMakeLists.txt [moved from nnstreamer_example/custom_example_LSTM/CMakeLists.txt with 51% similarity]
nnstreamer_example/custom_example_RNN/dummy_RNN.c [moved from nnstreamer_example/custom_example_LSTM/dummy_LSTM.c with 90% similarity]

index fe0cce9..fdd9f0b 100644 (file)
@@ -14,7 +14,7 @@ ADD_SUBDIRECTORY(custom_example_passthrough)
 ADD_SUBDIRECTORY(custom_example_scaler)
 ADD_SUBDIRECTORY(custom_example_average)
 ADD_SUBDIRECTORY(custom_example_opencv)
-ADD_SUBDIRECTORY(custom_example_LSTM)
+ADD_SUBDIRECTORY(custom_example_RNN)
 ADD_SUBDIRECTORY(example_cam)
 ADD_SUBDIRECTORY(example_sink)
 ADD_SUBDIRECTORY(example_filter)
@@ -1,8 +1,8 @@
-ADD_LIBRARY(dummyLSTM SHARED dummy_LSTM.c)
+ADD_LIBRARY(dummyRNN SHARED dummy_RNN.c)
 
-TARGET_LINK_LIBRARIES(dummyLSTM nnstreamer)
+TARGET_LINK_LIBRARIES(dummyRNN nnstreamer)
 
-INSTALL(TARGETS dummyLSTM
+INSTALL(TARGETS dummyRNN
        RUNTIME DESTINATION ${EXEC_PREFIX}
        LIBRARY DESTINATION ${LIB_INSTALL_DIR}
        ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
@@ -1,12 +1,12 @@
 /**
- * NNStreamer Custom Filter LSTM Example, "dummyLSTM"
+ * NNStreamer Custom Filter RNN Example, "dummyRNN"
  * Copyright (C) 2018 MyungJoo Ham <myungjoo.ham@samsung.com>
  *
  * LICENSE: LGPL-2.1
  *
- * @file       dummy_LSTM.c
+ * @file       dummy_RNN.c
  * @date       02 Nov 2018
- * @brief      Custom NNStreamer LSTM Model. "Dummy LSTM"
+ * @brief      Custom NNStreamer RNN Model. "Dummy RNN"
  * @author     MyungJoo Ham <myungjoo.ham@samsung.com>
  * @bug                No known bugs except for NYI items
  *
@@ -35,7 +35,7 @@ typedef struct _pt_data
 } pt_data;
 
 /**
- * @brief Initialize dummy-LSTM
+ * @brief Initialize dummy-RNN
  */
 static void *
 pt_init (const GstTensorFilterProperties * prop)
@@ -57,7 +57,7 @@ pt_init (const GstTensorFilterProperties * prop)
 }
 
 /**
- * @brief Exit dummy-LSTM
+ * @brief Exit dummy-RNN
  */
 static void
 pt_exit (void *private_data, const GstTensorFilterProperties * prop)
@@ -68,7 +68,7 @@ pt_exit (void *private_data, const GstTensorFilterProperties * prop)
 }
 
 /**
- * @brief get the input tensor dimensions of dummy-LSTM (4:4:4 uint8, 4:4:4 uint8)
+ * @brief get the input tensor dimensions of dummy-RNN (4:4:4 uint8, 4:4:4 uint8)
  */
 static int
 get_inputDim (void *private_data, const GstTensorFilterProperties * prop,
@@ -86,7 +86,7 @@ get_inputDim (void *private_data, const GstTensorFilterProperties * prop,
 }
 
 /**
- * @brief get the output tensor dimensions of dummy-LSTM (4:4:4 uint8)
+ * @brief get the output tensor dimensions of dummy-RNN (4:4:4 uint8)
  */
 static int
 get_outputDim (void *private_data, const GstTensorFilterProperties * prop,