tensorflow / cloud

The TensorFlow Cloud repository provides APIs that will allow to easily go from debugging and training your Keras and TensorFlow code in a local environment to distributed training in the cloud.

Home Page:https://github.com/tensorflow/cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI interface for tensorflow-cloud

eddydecena opened this issue · comments

When we working with cloud-native applications we often have a CLI interface. Would be great if we can run tensorflow-cloud in the terminal using something like tfc run mnist_example.py

Thank you for raising this Eddy, as a work around you could have your tfc.run() script in python file say my_example.py. Then from the command prompt you can run it by

python my_example.py

see call_run_on_notebook_with_keras_fit.py for an example.

Kindly let me know if this address your use case.

No totally because the idea is that the user doesn't need to create a python file if he no wants to, instead of executing a command in the command line is enough, for example:

tfc run mnist_example.py

This is another interface to use tf-cloud. We can use tf-cloud with .py files, .ipynb files, and with this we will use tf-cloud through CLI.

See pull request #283.

Thank you for the work Eddy, I left comments in the PR #283