Hi
I getting an error when running the native client (deepspeech) built from master. I don’t get this error with the one from v0.5 alpha 4. This was tested on debian running “testing” up to date.
I’ve compiled the libdeepspeech.so following the instructions.The steps were
Checkout https://github.com/mozilla/tensorflow
Install bazel from bazel-0.19.2-installer-linux-x86_64.sh
bazel build -c opt --copt=-O3 //tensorflow:libtensorflow_cc.so
Target //tensorflow:libtensorflow_cc.so up-to-date:
bazel-bin/tensorflow/libtensorflow_cc.so
INFO: Elapsed time: 2377.256s, Critical Path: 205.47s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 6028 processes: 6028 local.
INFO: Build completed successfully, 6205 total actions
bazel build -c opt --copt=-O3 //native_client:libdeepspeech.so
(had to fix an issue with “Darwin” in the BUILD file)
Target //native_client:libdeepspeech.so up-to-date:
bazel-bin/native_client/libdeepspeech.so
INFO: Elapsed time: 135.629s, Critical Path: 91.75s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 463 processes: 463 local.
INFO: Build completed successfully, 475 total actions
Went to “native_client” directory and built with “make”, with success.
c++ -std=c++11 -o deepspeech `pkg-config --cflags sox` client.cc -Wl,--no-as-needed -Wl,-rpath,\$ORIGIN -L/home/miguel/Development/IPL/investigacao/tensorflow/bazel-bin/native_client -ldeepspeech `pkg-config --libs sox`
Then running the executable I get an error:
make ARGS="--model /home/miguel/Development/IPL/investigacao/dsmodel/models/output_graph.pb --trie /home/miguel/Development/IPL/investigacao/dsmodel/models/trie --alphabet /home/miguel/Development/IPL/investigacao/dsmodel/models/alphabet.txt --audio meco-44.1kHz.wav" run |& head
LD_LIBRARY_PATH=/home/miguel/Development/IPL/investigacao/tensorflow/bazel-bin/native_client: ./deepspeech --model /home/miguel/Development/IPL/investigacao/dsmodel/models/output_graph.pb --trie /home/miguel/Development/IPL/investigacao/dsmodel/models/trie --alphabet /home/miguel/Development/IPL/investigacao/dsmodel/models/alphabet.txt --audio meco-44.1kHz.wav
TensorFlow: v1.12.0-10463-g892ffbc922
DeepSpeech: v0.5.0-alpha.4-35-g25a254f
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2019-04-04 19:37:15.270567: I external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2019-04-04 19:37:15.418865: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "RandomShuffle" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_VARIANT } } }') for unknown op: RandomShuffle
2019-04-04 19:37:15.418883: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "RandomShuffle" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_RESOURCE } } }') for unknown op: RandomShuffle
2019-04-04 19:37:15.418888: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "RandomShuffle" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_STRING } } }') for unknown op: RandomShuffle
2019-04-04 19:37:15.418893: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "RandomShuffle" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_BOOL } } }') for unknown op: RandomShuffle
2019-04-04 19:37:15.418897: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "RandomShuffle" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_COMPLEX128 } } }') for unknown op: RandomShuffle
... many more lines
2019-04-04 19:37:40.955635: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "Enter" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_BFLOAT16 } } }') for unknown op: Enter
2019-04-04 19:37:40.955639: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1355] OpKernel ('op: "Enter" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_HALF } } }') for unknown op: Enter
Not found: Op type not registered 'VariableV2' in binary running on legion. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
Could not create model.
make: *** [Makefile:29: run] Error 1
Any help is appreciated.
Best regards,
Miguel Negrão
Just noticed that https://github.com/mozilla/tensorflow
is on master, perhaps it should be on r1.13 ? Will try with that.
reuben
April 4, 2019, 7:07pm
3
Ok, after recompiling with tensorflow on branch r1.13 I get a different error when running:
make ARGS="--model /home/miguel/Development/IPL/investigacao/dsmodel/models/output_graph.pb --trie /home/miguel/Development/IPL/investigacao/dsmodel/models/trie --alphabet /home/miguel/Development/IPL/investigacao/dsmodel/models/alphabet.txt --audio meco-44.1kHz.wav" run
LD_LIBRARY_PATH=/home/miguel/Development/IPL/investigacao/tensorflow/bazel-bin/native_client: ./deepspeech --model /home/miguel/Development/IPL/investigacao/dsmodel/models/output_graph.pb --trie /home/miguel/Development/IPL/investigacao/dsmodel/models/trie --alphabet /home/miguel/Development/IPL/investigacao/dsmodel/models/alphabet.txt --audio meco-44.1kHz.wav
TensorFlow: v1.13.1-10-g3e0cc5374d
DeepSpeech: v0.5.0-alpha.4-35-g25a254f
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2019-04-04 22:02:33.873433: I external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2019-04-04 22:02:34.023388: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_STRING } } } host_memory_arg: "input"') for unknown op: _Retval
2019-04-04 22:02:34.023414: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_RESOURCE } } } host_memory_arg: "input"') for unknown op: _Retval
2019-04-04 22:02:34.023421: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } } host_memory_arg: "input"') for unknown op: _Retval
2019-04-04 22:02:34.023426: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_BOOL } } }') for unknown op: _Retval
2019-04-04 22:02:34.023431: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_VARIANT } } }') for unknown op: _Retval
2019-04-04 22:02:34.023436: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_QINT32 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023440: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_QUINT8 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023445: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_QINT8 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023451: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_COMPLEX128 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023457: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_COMPLEX64 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023462: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023468: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_UINT8 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023473: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT16 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023479: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_UINT16 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023484: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT64 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023488: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: _Retval
2019-04-04 22:02:34.023493: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_FLOAT } } }') for unknown op: _Retval
2019-04-04 22:02:34.023498: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_BFLOAT16 } } }') for unknown op: _Retval
2019-04-04 22:02:34.023503: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_HALF } } }') for unknown op: _Retval
2019-04-04 22:02:34.023508: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_DeviceArg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } }') for unknown op: _DeviceArg
2019-04-04 22:02:34.023513: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "WrapDatasetVariant" device_type: "CPU"') for unknown op: WrapDatasetVariant
2019-04-04 22:02:34.023521: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_DeviceArg" device_type: "CPU"') for unknown op: _DeviceArg
2019-04-04 22:02:34.023526: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Retval" device_type: "CPU"') for unknown op: _Retval
2019-04-04 22:02:34.023531: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "CPU"') for unknown op: _Arg
2019-04-04 22:02:34.023536: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "UnwrapDatasetVariant" device_type: "CPU"') for unknown op: UnwrapDatasetVariant
2019-04-04 22:02:34.023543: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_DeviceRetval" device_type: "CPU"') for unknown op: _DeviceRetval
2019-04-04 22:02:34.023549: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_DeviceRetval" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } }') for unknown op: _DeviceRetval
2019-04-04 22:02:34.023555: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "UnwrapDatasetVariant" device_type: "GPU" host_memory_arg: "input_handle" host_memory_arg: "output_handle"') for unknown op: UnwrapDatasetVariant
2019-04-04 22:02:34.023562: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ListToArray" device_type: "CPU"') for unknown op: _ListToArray
2019-04-04 22:02:34.023566: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "RemoteCall" device_type: "CPU" host_memory_arg: "target"') for unknown op: RemoteCall
2019-04-04 22:02:34.023571: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ArrayToList" device_type: "CPU"') for unknown op: _ArrayToList
2019-04-04 22:02:34.023576: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ListToArray" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } } host_memory_arg: "input" host_memory_arg: "output"') for unknown op: _ListToArray
2019-04-04 22:02:34.023581: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ListToArray" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: _ListToArray
2019-04-04 22:02:34.023586: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ListToArray" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_FLOAT } } }') for unknown op: _ListToArray
2019-04-04 22:02:34.023590: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ListToArray" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_HALF } } }') for unknown op: _ListToArray
2019-04-04 22:02:34.023595: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ArrayToList" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } } host_memory_arg: "input" host_memory_arg: "output"') for unknown op: _ArrayToList
2019-04-04 22:02:34.023600: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ArrayToList" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: _ArrayToList
2019-04-04 22:02:34.023605: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ArrayToList" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_FLOAT } } }') for unknown op: _ArrayToList
2019-04-04 22:02:34.023610: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_ArrayToList" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_HALF } } }') for unknown op: _ArrayToList
2019-04-04 22:02:34.023616: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "WrapDatasetVariant" device_type: "GPU" host_memory_arg: "input_handle" host_memory_arg: "output_handle"') for unknown op: WrapDatasetVariant
2019-04-04 22:02:34.023621: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "SymbolicGradient" device_type: "CPU"') for unknown op: SymbolicGradient
2019-04-04 22:02:34.023629: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "SymbolicGradient" device_type: "GPU"') for unknown op: SymbolicGradient
2019-04-04 22:02:34.023634: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "RemoteCall" device_type: "GPU" host_memory_arg: "target"') for unknown op: RemoteCall
2019-04-04 22:02:34.023746: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_VARIANT } } }') for unknown op: _Arg
2019-04-04 22:02:34.023753: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_STRING } } } host_memory_arg: "output"') for unknown op: _Arg
2019-04-04 22:02:34.023759: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_RESOURCE } } } host_memory_arg: "output"') for unknown op: _Arg
2019-04-04 22:02:34.023765: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } } host_memory_arg: "output"') for unknown op: _Arg
2019-04-04 22:02:34.023770: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_BOOL } } }') for unknown op: _Arg
2019-04-04 22:02:34.023776: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_QINT32 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023781: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_QUINT8 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023786: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_QINT8 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023792: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_COMPLEX128 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023797: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_COMPLEX64 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023803: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023809: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_UINT8 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023814: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT16 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023820: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_UINT16 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023825: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_INT64 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023831: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_DOUBLE } } }') for unknown op: _Arg
2019-04-04 22:02:34.023836: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_FLOAT } } }') for unknown op: _Arg
2019-04-04 22:02:34.023842: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_BFLOAT16 } } }') for unknown op: _Arg
2019-04-04 22:02:34.023848: E external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:1325] OpKernel ('op: "_Arg" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_HALF } } }') for unknown op: _Arg
Not found: Op type not registered 'NoOp' in binary running on legion. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
Could not create model.
make: *** [Makefile:29: run] Error 1
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
April 4, 2019, 9:23pm
5
Not sure what you did, but it’s bad. Can you give more details on all your steps ? Have you restarted from scratch ?
I recloned and rebuilt tensorflow and now it works fine. Sorry, must have done some step wrong.
In case it is useful to someone else I did:
git clone https://github.com/mozilla/tensorflow.git
cd tensorflow
git checkout -t origin/r1.13
source ../tf_venv/bin/activate
./configure
ln -s ../DeepSpeech/native_client ./
bazel build --config=monolithic -c opt --copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-fvisibility=hidden --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.1 --copt=-msse4.2 //native_client:libdeepspeech.so
cd ..
cd DeepSpeech/native_client/
make
Thanks for the help.