Skip to content

Commit 6694e89

Browse files
authored
Merge pull request Kaggle#355 from Kaggle/sitecustomize
Don't preload tensorflow and torch
2 parents 1aaf589 + 736bad3 commit 6694e89

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

patches/sitecustomize.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Monkey patches BigQuery client creation to use proxy.
2-
3-
# Import tensorflow and torch before anything else. This is a hacky workaround to an error on dlopen
4-
# reporting a limit on static TLS, tracked in:
5-
# tensorflow: https://github.com/tensorflow/tensorflow/issues/19010
6-
# torch: https://github.com/pytorch/pytorch/issues/2575
7-
import tensorflow
8-
import torch
91
import os
102

3+
# Monkey patches BigQuery client creation to use proxy.
114
kaggle_proxy_token = os.getenv("KAGGLE_DATA_PROXY_TOKEN")
125
if kaggle_proxy_token:
136
from google.auth import credentials

0 commit comments

Comments
 (0)