"vscode:/vscode.git/clone" did not exist on "22c50187d7bf4df8c8bc09a0048e3559a5e440d5"
Commit f717f6bf authored by Neal Wu's avatar Neal Wu
Browse files

Add a note rather than repeating the full command

parent 60d40dd5
...@@ -48,18 +48,14 @@ sudo pip install numpy ...@@ -48,18 +48,14 @@ sudo pip install numpy
Build the LSTM op: Build the LSTM op:
Linux
``` ```
cd cc cd cc
TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())') TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
g++ -std=c++11 -shared rnn_ops.cc -o rnn_ops.so -fPIC -I $TF_INC -O3 -mavx g++ -std=c++11 -shared rnn_ops.cc -o rnn_ops.so -fPIC -I $TF_INC -O3 -mavx
``` ```
Mac
``` (Note: if running on Mac, add `-undefined dynamic_lookup` to the end of your
cd cc `g++` command.)
TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
g++ -std=c++11 -shared rnn_ops.cc -o rnn_ops.so -fPIC -I $TF_INC -O3 -mavx -undefined dynamic_lookup
```
Run the unittests: Run the unittests:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment