We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 699d273 + 222aa2f commit a901aa3Copy full SHA for a901aa3
patches/kaggle_secrets.py
@@ -7,7 +7,6 @@
7
import json
8
import os
9
import socket
10
-import tensorflow_gcs_config
11
import urllib.request
12
from datetime import datetime, timedelta
13
from enum import Enum, unique
@@ -140,6 +139,9 @@ def set_tensorflow_credential(self, credential):
140
139
"""Sets the credential for use by Tensorflow both in the local notebook
141
and to pass to the TPU.
142
"""
+ # b/159906185: Import tensorflow_gcs_config only when this method is called to prevent preloading TensorFlow.
143
+ import tensorflow_gcs_config
144
+
145
# Write to a local JSON credentials file and set
146
# GOOGLE_APPLICATION_CREDENTIALS for tensorflow running in the notebook.
147
adc_path = os.path.join(
0 commit comments