Closed jeremykid closed 4 years ago
do you deal it ? i meet it too
I meet it too. tf or keras version problem?
@jeremykid @jinyl777 @Xl-wj Can you try changing line 32 and line 36 of https://github.com/sadeepj/crfasrnn_keras/blob/master/src/crfrnn_layer.py as shown below?
Line 32: def _diagonal_initializer(shape, *args, **kwargs):
....
Line 36: def _potts_model_initializer(shape, *args, **kwargs):
@sadeepj Thank you! It works after changing the these codes .
@Xl-wj Thanks for the update. I have now pushed this change to the master
branch (4d28dfe892ff3ff2cb9531130f081cde0fc236bc). Hence closing the ticket.
@jeremykid @jinyl777 @Xl-wj Can you try changing line 32 and line 36 of https://github.com/sadeepj/crfasrnn_keras/blob/master/src/crfrnn_layer.py as shown below?
Line 32: def _diagonal_initializer(shape, *args, **kwargs): .... Line 36: def _potts_model_initializer(shape, *args, **kwargs):
sorry,i have the same problem,can you tell how should i solve it?thanks!
TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())') TF_LIB=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')
g++ -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -shared high_dim_filter.cc modified_permutohedral.cc -o high_dim_filter.so -fPIC -I $TF_INC -I$TF_INC/external/nsync/public/ -L$TF_LIB -ltensorflow_framework -O2 There is no problem in compiling, but when I run the train.py code, I will get an error. undefined symbol: _ZTIN10tensorflow8OpKernelE @ sadeepj @hassanrazakhalid @sirotenko @Kautenja Thanks a lot!!!
Here is my error message.