File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 11# Monkey patches BigQuery client creation to use proxy.
2+
3+ # Import torch before anything else. This is a hacky workaround to an error on dlopen
4+ # reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
5+ import torch
26import os
37
48kaggle_proxy_token = os .getenv ("KAGGLE_DATA_PROXY_TOKEN" )
Original file line number Diff line number Diff line change 9696import seaborn
9797print ("seaborn ok" )
9898
99+ # PyTorch smoke test based on http://pytorch.org/tutorials/beginner/nlp/deep_learning_tutorial.html
100+ import torch
101+ import torch .nn as tnn
102+ import torch .autograd as autograd
103+ torch .manual_seed (31337 )
104+ linear_torch = tnn .Linear (5 ,3 )
105+ data_torch = autograd .Variable (torch .randn (2 , 5 ))
106+ print (linear_torch (data_torch ))
107+ print ("PyTorch ok" )
108+
109+ import fastai
110+ from fastai .io import get_data
111+ print ("fast.ai ok" )
112+
99113import os
100114import threading
101115from http .server import BaseHTTPRequestHandler , HTTPServer
You can’t perform that action at this time.
0 commit comments