cloud icon indicating copy to clipboard operation
cloud copied to clipboard

CLI interface for tensorflow-cloud

Open eddydecena opened this issue 5 years ago • 3 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

eddydecena avatar Jan 14 '21 02:01 eddydecena

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.

SinaChavoshi avatar Jan 20 '21 21:01 SinaChavoshi

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.

eddydecena avatar Feb 03 '21 00:02 eddydecena

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

SinaChavoshi avatar Feb 21 '21 08:02 SinaChavoshi