There are a few ways to run Tensorflow:
- and It can also be done manually
For Manually using Tensorflow:
- Create a project
- Open the Cloud Shell (a button at the top)
- List machine types: gcloud compute machine-types list. You can change the machine type I used in the next command.
- Create an instance:
gcloud compute instances create tf \
--image container-vm \
--zone europe-west1-c \
- Run sudo docker run -d -p 8888:8888 --name tf b.gcr.io/tensorflow-udacity/assignments:0.5.0 (change the image name to the desired one)
- Find your instance in the dashboard and edit the default network.
- Add a firewall rule to allow your IP as well as protocol and port tcp:8888.
- Find the External IP of the instance from the dashboard. Open IP:8888 on your browser. Done!
- When you are finished, delete the created cluster to avoid charges.
Hope it helps!!
If you need to know more about Google Cloud, We recommend joining GCP Certification course today.