Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Delay tensorflow_gcs_config import#849

Merged
rosbo merged 1 commit intomasterKaggle/docker-python:masterfrom
fix-tensorflow-importKaggle/docker-python:fix-tensorflow-importCopy head branch name to clipboard
Jul 2, 2020
Merged

Delay tensorflow_gcs_config import#849
rosbo merged 1 commit intomasterKaggle/docker-python:masterfrom
fix-tensorflow-importKaggle/docker-python:fix-tensorflow-importCopy head branch name to clipboard

Conversation

@rosbo
Copy link
Contributor

@rosbo rosbo commented Jul 1, 2020

Import tensorflow_gcs_config only when set_tensorflow_credential is called to prevent preloading TensorFlow.

BUG=159906185

@rosbo rosbo requested a review from vimota July 2, 2020 00:08
@rosbo
Copy link
Contributor Author

rosbo commented Jul 2, 2020

I will test manually in Kaggle notebook to make sure the following works:

from kaggle_secrets import UserSecretsClient
user_secrets = UserSecretsClient()
user_credential = user_secrets.get_gcloud_credential()

user_secrets.set_tensorflow_credential(user_credential)

Testing in progress...

@rosbo
Copy link
Contributor Author

rosbo commented Jul 2, 2020

I confirm it works.

Copy link
Contributor

@vimota vimota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@rosbo rosbo merged commit a901aa3 into master Jul 2, 2020
@rosbo rosbo deleted the fix-tensorflow-import branch July 2, 2020 00:35
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.