Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import Tensorflow source codes correctly with Clion or Netbeans

I intend to read the core module of Tensorflow(TF) source codes

My problem is I do not have experience reading C/C++ source codes like TF in IDE. Could anyone give me some instructions regarding how to read TF source codes (core module) efficiently in a IDE. I have Clion and Netbeans on my Macbook but I don't know how to import TF correctly(also which part to import?;how to build it?) such that when I want to know the declaration of one C++ class I can jump to its signature/declaration directly.

I will appreciate any advice/recommended tools for reading TF source codes efficiently. BTW, I am assuming reading TF codes with a IDE is efficient. If it is not true, I can stop using them and turn to tools like VIM.

like image 746
kz28 Avatar asked May 01 '17 21:05

kz28


1 Answers

The original Tensorflow repository(GitHub) does not contain project information file for any specific IDE, which means you cannot just import the whole project unless you are using something which can import files based on the project folder (Atom, Visual Studio Code, Sublime etc.) I would suggest using one of those if your aim is just to read an navigate inside the code base.

Unfortunately you wont be able to build the code with any of those editors. Tensorflow uses Bazel as its build tool which has support at the moment for Eclipse and Xcode. Honestly, I'm not sure if you can import the the code base in one of this IDEs either.

like image 117
Ervin Szilagyi Avatar answered Nov 16 '22 00:11

Ervin Szilagyi