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.
https://github.com/tensorflow/cloud
Apache License 2.0
370 stars 84 forks source link

Gcp region is set hard to "us-central1" #380

Open hubtub2 opened 2 years ago

hubtub2 commented 2 years ago

I tried so set my compute region to "west europe" using the gcp console. Did not work, jobs where always started in "us-central1".

Turns out, the region is hardcoded in tensorflow-cloud. The implementation in /core/gcp.py is:

def get_region():
return "us-central1"

Please change it to use the default region from gcp, or let us pass in the region as parameter.

cymarechal commented 2 years ago

I presented a similar problem in PR #381. I will implement the fix to your issue as well.

Rezckant commented 2 years ago

🤔