-
Notifications
You must be signed in to change notification settings - Fork 74.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Adding a new op #19122
Comments
You will need to figure out the correct ABI using
But you will run into another new issue #18841 and hence you'll need the git-repository and compile TF from source. |
@PatWie I have searched ‘libtensorflow_framework.so' on my computer and I can not find it which may not be installed. I have tried reinstalling TF many times. However, I got the same result. Must I install TF from source if I want to add my op? |
Sorry for the trouble, we do want to make sure that the documentation is correct and useful. Are you following https://www.tensorflow.org/extend/adding_an_op#compile_the_op_using_your_system_compiler_tensorflow_binary_installation ? Could you include a minimum, complete, verifiable example to reproduce the problem? Though, I see you're using Windows. In Windows, there is no equivalent of |
@asimshankar I am following the tutorial except this step because of the lack of the file 'libtensorflow_framework.so' |
@deepin17 : I see, thanks for the update. Honestly, we don't have the bandwidth/expertise to update the documentation for compiling custom operations for Windows (and also, the I took the liberty to update the issue title to more closely reflect that. Marking this as "Contributions Welcome" for this purpose. |
Also see tensorflow/models#1103 (comment) (CC @guschmue as an FYI) |
Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
System information
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
I use pip to install tensorflow, but there is no library I need to compile my op.
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.$(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') ) TF_LFLAGS=( $ (python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') ) g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2 /usr/bin/ld: 找不到 -ltensorflow_framework collect2: 错误:ld 返回 1
TF_CFLAGS=(
The text was updated successfully, but these errors were encountered: