aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/crf
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/crf
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/crf')
-rw-r--r--tensorflow/contrib/crf/python/kernel_tests/crf_test.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tensorflow/contrib/crf/python/kernel_tests/crf_test.py b/tensorflow/contrib/crf/python/kernel_tests/crf_test.py
index ce683ad5ce..448bcafffe 100644
--- a/tensorflow/contrib/crf/python/kernel_tests/crf_test.py
+++ b/tensorflow/contrib/crf/python/kernel_tests/crf_test.py
@@ -19,15 +19,9 @@ from __future__ import division
from __future__ import print_function
import itertools
-import sys
import numpy as np
-# 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.crf.python.ops import crf
from tensorflow.python.framework import constant_op
from tensorflow.python.ops import array_ops