Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-1121] Example to demonstrate the inference workflow using RNN #13680

Merged
merged 35 commits into from
Feb 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9519a2d
[MXNET-1121] Example to demonstrate the inference workflow using RNN
leleamol Dec 18, 2018
8c06090
Merge branch 'master' of /~https://github.com/apache/incubator-mxnet in…
leleamol Jan 9, 2019
7a341f9
Addressed the review comments. Updated the ReadMe files.
leleamol Jan 9, 2019
c19760a
Removed the unnecessary creation of NDArray
leleamol Jan 9, 2019
438c3c4
Added the unit tests to nightly tests to catch the failure.
leleamol Jan 10, 2019
c2f7a67
Updated the makefiles and unit tests so that the examples are built a…
leleamol Jan 11, 2019
768fe5e
Added the visual representation of the model and fixed the CI failure.
leleamol Jan 11, 2019
d8abf83
Added the missing pdf file.
leleamol Jan 12, 2019
fd33d22
Fixing the broken ci_test.sh
leleamol Jan 12, 2019
e31a5bd
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
c53d329
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
9d315a2
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
c774f3c
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
8d88feb
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
6d631b3
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
0d00c74
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
03744a3
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
ff5fca3
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
4ffd4a9
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
bd6fad5
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
d5119c2
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
4bafe95
Update cpp-package/example/inference/README.md
IvyBazan Jan 12, 2019
1da9482
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
4393f18
Update cpp-package/example/inference/simple_rnn.cpp
IvyBazan Jan 12, 2019
45cbba9
Applying unresolved changes to README file.
leleamol Jan 12, 2019
bf48c42
Fixing the CI build failure.
leleamol Jan 14, 2019
bd35b40
Updated the RNN example from sequence generation to sentiment analysis
leleamol Jan 19, 2019
b198339
Updated the readme files. Updated the example to use trained model an…
leleamol Jan 21, 2019
4897901
Addressed the review comment to increase the default sequence length.…
leleamol Jan 23, 2019
bb14d79
Updated the example to handle variable length input. Updated the read…
leleamol Jan 28, 2019
a487ca9
Updated the example to share the memory between executors by createin…
leleamol Jan 30, 2019
c3cace1
Updated the creation of executors from largest to smallest bucket key
leleamol Feb 5, 2019
7d4a173
Creating the executor for the highest bucket key.
leleamol Feb 5, 2019
b1e074f
Updated the unit test to check for the results in a range and modifie…
leleamol Feb 6, 2019
0f155e9
Fixed the logic to find the right bucket.
leleamol Feb 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cpp-package/example/inference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The model consists of :
- FullyConnected Layer
- SoftmaxOutput
The model was trained for 100 epochs.
The visual representation of the model is [here](</~https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/inference/obama-speaks.pdf>).
leleamol marked this conversation as resolved.
Show resolved Hide resolved

The model files can be found here.
- [obama-speaks-symbol.json](<https://s3.amazonaws.com/mxnet-cpp/RNN_model/obama-speaks-symbol.json>)
Expand Down
6 changes: 3 additions & 3 deletions cpp-package/example/inference/inference.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

CPPEX_SRC = $(wildcard cpp-package/example/inference/*.cpp)
CPPEX_EXE = $(patsubst cpp-package/example/inference/%.cpp, build/cpp-package/example/inference/%, $(CPPEX_SRC))
CPPEX_EXE = $(patsubst cpp-package/example/inference/%.cpp, build/cpp-package/example/%, $(CPPEX_SRC))

CPPEX_CFLAGS += -Icpp-package/include
CPPEX_EXTRA_LDFLAGS := -L$(ROOTDIR)/lib -lmxnet
Expand All @@ -28,9 +28,9 @@ EXTRA_PACKAGES_CLEAN += cpp-package-inference-example-clean

cpp-package-inference-example-all: cpp-package-all $(CPPEX_EXE)

build/cpp-package/example/inference/% : cpp-package/example/inference/%.cpp lib/libmxnet.so $(CPP_PACKAGE_OP_H_FILE)
build/cpp-package/example/% : cpp-package/example/inference/%.cpp lib/libmxnet.so $(CPP_PACKAGE_OP_H_FILE)
@mkdir -p $(@D)
$(CXX) -std=c++11 $(CFLAGS) $(CPPEX_CFLAGS) -MM -MT cpp-package/example/inference/$* $< >build/cpp-package/example/inference/$*.d
$(CXX) -std=c++11 $(CFLAGS) $(CPPEX_CFLAGS) -MM -MT cpp-package/example/inference/$* $< >build/cpp-package/example/$*.d
$(CXX) -std=c++11 $(CFLAGS) $(CPPEX_CFLAGS) -o $@ $(filter %.cpp %.a, $^) $(LDFLAGS) $(CPPEX_EXTRA_LDFLAGS)

cpp-package-inference-example-clean:
Expand Down
4 changes: 2 additions & 2 deletions cpp-package/tests/ci_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ cp ../../build/cpp-package/example/test_score .
sh unittests/unit_test_mlp_csv.sh

cd inference
cp ../../../build/cpp-package/example/inference/inception_inference .
cp ../../build/cpp-package/example/inference/inception_inference .
./unit_test_inception_inference.sh

cp ../../../build/cpp-package/example/inference/simple_rnn .
cp ../../build/cpp-package/example/inference/simple_rnn .
./unit_test_simple_rnn.sh
cd ..