aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/specs
diff options
context:
space:
mode:
authorGravatar Jonathan Hseu <jhseu@google.com>2017-02-28 18:36:23 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-28 18:51:06 -0800
commit718812c9e4df55b8b3275aa4db7bb6833ed03111 (patch)
treee8bc57fe5bfaea125d4d4c4535e29a7ed2306057 /tensorflow/contrib/specs
parent4e63540076921d2c08d03aa9efb76fd483920593 (diff)
Fix the dlopen contrib test hack by making a pywrap_tensorflow module that imports
pywrap_tensorflow_internal with RTLD_GLOBAL. Fixes #6568 Change: 148843302
Diffstat (limited to 'tensorflow/contrib/specs')
-rw-r--r--tensorflow/contrib/specs/python/specs_test.py7
-rw-r--r--tensorflow/contrib/specs/python/summaries_test.py7
2 files changed, 0 insertions, 14 deletions
diff --git a/tensorflow/contrib/specs/python/specs_test.py b/tensorflow/contrib/specs/python/specs_test.py
index 7004ca2e63..41782a9fc9 100644
--- a/tensorflow/contrib/specs/python/specs_test.py
+++ b/tensorflow/contrib/specs/python/specs_test.py
@@ -18,13 +18,6 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-import sys
-
-# TODO: #6568 Remove this hack that makes dlopen() not crash.
-if hasattr(sys, "getdlopenflags") and hasattr(sys, "setdlopenflags"):
- import ctypes
- sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
-
import numpy as np
from tensorflow.contrib.specs import python
diff --git a/tensorflow/contrib/specs/python/summaries_test.py b/tensorflow/contrib/specs/python/summaries_test.py
index 090b4d2361..34ff4bc8ca 100644
--- a/tensorflow/contrib/specs/python/summaries_test.py
+++ b/tensorflow/contrib/specs/python/summaries_test.py
@@ -18,13 +18,6 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-import sys
-
-# TODO: #6568 Remove this hack that makes dlopen() not crash.
-if hasattr(sys, "getdlopenflags") and hasattr(sys, "setdlopenflags"):
- import ctypes
- sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
-
import numpy as np
from tensorflow.contrib.specs.python import specs