tensorflow / custom-op

Guide for building custom op for TensorFlow
Apache License 2.0
376 stars 115 forks source link

tensorflow.python.framework.errors_impl.NotFoundError: IVS/IVS_conv/cc/ops/_ivs_conv_ops.so: undefined symbol: _ZN10tensorflow7functor10DeepConv2DIN5Eigen16ThreadPoolDeviceEfEclEPNS_15OpKernelContextERKNS_10Conv2DArgsEPKfSB_Pf error #96

Open ivs-pychen opened 3 years ago

ivs-pychen commented 3 years ago

I use the Makefile to generate the .so file. I tried to load the custom op library, but I get the following error: image

hs805430 commented 3 years ago

Hello, I have the same problem as you, but the.so file cannot be opened for modification. How do you solve it?

maxhgerlach commented 3 years ago

You can use c++filt to demangle that name and see which piece of code is missing. It looks similar to tensorflow::functor::DeepConv2D. [Why didn't you copy-paste the actual text, but added a screenshot?]

If you don't manage to link in that symbol, you could just include the related source files from the TensorFlow sources, of course.

ice-tong commented 2 years ago

I use the Makefile to generate the .so file. I tried to load the custom op library, but I get the following error: image

Same problem, any solution?