Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run TensorFlow remotely

I am new to TensorFlow, Linux, and ML. I am trying to use a GPU in another system in my lab for training my model. I have connected to the system using SSH.

Now what I am stuck on is how should I write the python code? One thing I can do is run python in the terminal window where I can see the username of the other machine I am connected to but it takes a lot of efforts and is not an efficient way of doing it.

What I want to do is write the python code in a file(on my machine) and run it on the machine possessing GPU. Can you describe to me how I should do that?

P.S: I understand it is a very basic doubt but I would appreciate if you can help me with it

like image 209
Abhishek Tyagi Avatar asked Aug 03 '17 08:08

Abhishek Tyagi


2 Answers

Sorry to plug my own site, but I described how to do this with Pycharm in a blogpost.

Really hope this helps you out! If you have any more questions, feel free to ask!

like image 164
rmeertens Avatar answered Sep 22 '22 02:09

rmeertens


Tensorflow has a Distributed Tensorflow tutorial out now. Since you can connect over SSH, this is an option.

like image 31
jblopez Avatar answered Sep 21 '22 02:09

jblopez