티스토리 뷰
tensorflow compile problem
undefined symbol: _ZTIN10tensorflow8OpKernelE
Sorry about that. The "adding an op" docs are updated at head (and will go live once 1.4 is released), but right now there's a bit of a mismatch. The important bits:
TF_LIB=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')
And add to the compiler flags:-L$TF_LIB -ltensorflow_framework
It is also possible to build with --config=monolithic if you want to load custom ops with RTLD_GLOBAL in Python (should work just as it did pre-1.4).