Coder Social home page Coder Social logo

Comments (3)

troublemaker-r avatar troublemaker-r commented on August 21, 2024

I am also meet the same errror.Have you solved it? I am running Win10.

from e2e-coref.

chrisoutwright avatar chrisoutwright commented on August 21, 2024

I could not get the .so building as well (@mengzhi7, could you even get g++ to build from the .cc operation file?)

On windows, it seems like a complicated task, ensuring that all tensorflow includes and library files are there (for gpu ops also all cuda files needed for building). Essentially creating coref_kernels.so is a extension (python wrapper file) that has new tensorflow functionality and needs to be build from source , which is nearly as complicated as building tensorflow from source. See https://www.tensorflow.org/guide/create_op?hl=en
Even on linux, I could get a .so file, but it does not seem compatible with win again. Check the -I and-L flags for the build command for g++, the paths must point to the right sources (in the setup_all.sh the variables for the paths stem from where the python executable (when using venv, check if it is using the correct interpreter path) finds them via

TF_CFLAGS=( $(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()))') )

As far as I can tell, one would have to build tensorflow completely from source, with the custom operation appended. See all the failed attempts at this user with loading/building an ops: https://stackoverflow.com/questions/50967670/g-fails-to-build-custom-tensorflow-gpu-op-on-windows-from-installed-binaries

Couldn't we just have the so files ready compiled (depends on tensorflow and (cuda) version i guess, so several variants would be needed)? Its really a frustration if one is not a programmer and just wants to try the model ... ending up compiling tensorflow which is really not an easy task ... I think one needs bezel instead of g++ maybe even cmake, but guides on building custom kernels are not easy to follow for me.

from e2e-coref.

Bigchen8013 avatar Bigchen8013 commented on August 21, 2024

@chrisoutwright Hi, have you solved this problem? Can it run on windows? Hope to get your reply, thank you very much!

from e2e-coref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.