mirror of
https://github.com/zhigang1992/fastai.git
synced 2026-03-29 00:18:59 +08:00
It fixes the seg fault crash seen in travis builds. Mostlikely the crash was caused by the exception below that appears if the torch, cv2 and mathplotlib aren't imported in a right order. ``` ImportError: dlopen: cannot load any more object with static TLS ``` see #286 for more details. fix typos in .travis.yml
8 lines
248 B
Python
8 lines
248 B
Python
import matplotlib
|
|
matplotlib.use('agg')
|
|
import cv2,torch
|
|
|
|
# the above imports are fixing the TLS issue:
|
|
# ```ImportError: dlopen: cannot load any more object with static TLS```
|
|
# they were set after experimenting with the test sets on ubuntu 16.04
|