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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions 9 patches/sitecustomize.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Monkey patches BigQuery client creation to use proxy.

# Import tensorflow and torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in:
# tensorflow: https://github.com/tensorflow/tensorflow/issues/19010
# torch: https://github.com/pytorch/pytorch/issues/2575
import tensorflow
import torch
import os

# Monkey patches BigQuery client creation to use proxy.
kaggle_proxy_token = os.getenv("KAGGLE_DATA_PROXY_TOKEN")
if kaggle_proxy_token:
from google.auth import credentials
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.