diff options
author | Jonathan Hseu <jhseu@google.com> | 2017-02-28 18:36:23 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-02-28 18:51:06 -0800 |
commit | 718812c9e4df55b8b3275aa4db7bb6833ed03111 (patch) | |
tree | e8bc57fe5bfaea125d4d4c4535e29a7ed2306057 /tensorflow/contrib/linear_optimizer | |
parent | 4e63540076921d2c08d03aa9efb76fd483920593 (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/linear_optimizer')
-rw-r--r-- | tensorflow/contrib/linear_optimizer/python/kernel_tests/sdca_ops_test.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tensorflow/contrib/linear_optimizer/python/kernel_tests/sdca_ops_test.py b/tensorflow/contrib/linear_optimizer/python/kernel_tests/sdca_ops_test.py index 71217f8060..eb1bdeff59 100644 --- a/tensorflow/contrib/linear_optimizer/python/kernel_tests/sdca_ops_test.py +++ b/tensorflow/contrib/linear_optimizer/python/kernel_tests/sdca_ops_test.py @@ -18,14 +18,8 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -import sys import threading -# 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) - from tensorflow.contrib.linear_optimizer.python.ops.sdca_ops import SdcaModel from tensorflow.contrib.linear_optimizer.python.ops.sparse_feature_column import SparseFeatureColumn from tensorflow.core.example import example_pb2 |