Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to set environment to enable Estimators with TF <=1.3 #94

Merged
merged 4 commits into from
Oct 30, 2017

Conversation

jlewi
Copy link
Contributor

@jlewi jlewi commented Oct 29, 2017

  • RunConfig (part of Estimator API) depends on the environment being
    set in TF_CONFIG to 'cloud'. If we don't set environment to 'cloud'
    then is_chief isn't enabled for the master and the TF program doesn't
    make progress.

  • TF 1.4 should be backwards compatible; i.e. it doesn't make use of
    environment in TF_CONFIG. So this code should be forward compatible.

  • Expand the unittest for replicas.go to cover the new code.

  • In replicas.go we should make a full DeepCopy of the PodTemplateSpec
    before modifying it. It turns out K8s provides auto-generated code to
    perform deep copies.

jlewi added 3 commits October 28, 2017 15:29
* RunConfig (part of Estimator API) depends on the environment being
  set in TF_CONFIG to 'cloud'. If we don't set environment to 'cloud'
  then is_chief isn't enabled for the master and the TF program doesn't
  make progress.

* TF 1.4 should be backwards compatible; i.e. it doesn't make use of
  environment in TF_CONFIG. So this code should be forward compatible.

* Expand the unittest for replicas.go to cover the new code.

* In replicas.go we should make a full DeepCopy of the PodTemplateSpec
  before modifying it. It turns out K8s provides auto-generated code to
  perform deep copies.
@jlewi
Copy link
Contributor Author

jlewi commented Oct 29, 2017

/test all

@jlewi jlewi merged commit 4b7b1fe into kubeflow:master Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant