Giter VIP home page Giter VIP logo

Comments (3)

sycki avatar sycki commented on August 16, 2024 1

@galeone Thanks for the reminder, I checked my /usr/local/include and /usr/local/lib directories and found that there are no tensorflow files here, I remembered that I followed https://www.tensorflow.org/install/lang_c, extract the tensorflow file to a non-system directory.

[root@node01 ~]# tar -zxf libtensorflow-gpu-linux-x86_64-2.6.0.tar.gz -C /home/sycki/program/tensorflow-gpu-2.6.0
echo '/home/sycki/program/tensorflow-gpu-2.6.0/lib' > /etc/ld.so.conf.d/ld.tensorflow.conf
sudo ldconfig

Now I re-extracted it into the /usr/local directory, and I can now execute go get tfgo normally.

If you also think this is not an issue, please close this issue. Thanks again.

from tfgo.

galeone avatar galeone commented on August 16, 2024

Hi!

It looks strange since the error you're getting is about the location of the tensorflow headers in the system, that cgo uses when compiling the tensorflow/go module.

# github.com/galeone/tensorflow/tensorflow/go
../pkg/mod/github.com/galeone/tensorflow/tensorflow/[email protected]/attrs.go:20:11: fatal error: tensorflow/c/c_api.h: No such file or directory
   20 | // #include "tensorflow/c/c_api.h"

Usually, when I face this problem I just check if in the include path I have /usr/local and if tensorflow/c/c_api.h is there

from tfgo.

galeone avatar galeone commented on August 16, 2024

Awesome! Yes, I'm going to close this issue.

from tfgo.

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.