diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-11-10 12:04:29 -0800 |
---|---|---|
committer | Andrew Selle <aselle@andyselle.com> | 2017-11-10 16:14:43 -0800 |
commit | 9372c016161b7299be28cbf6636f32ad4448ebde (patch) | |
tree | e2ebf0647d8dea8aca50faab0de7dc356b47ef12 /tensorflow/python/pywrap_dlopen_global_flags.py | |
parent | 80078ae4a940f829eb81f03d80ec4d816a638df4 (diff) |
...comment format only change...
PiperOrigin-RevId: 175319401
Diffstat (limited to 'tensorflow/python/pywrap_dlopen_global_flags.py')
-rw-r--r-- | tensorflow/python/pywrap_dlopen_global_flags.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tensorflow/python/pywrap_dlopen_global_flags.py b/tensorflow/python/pywrap_dlopen_global_flags.py index 509fc2170c..411334f480 100644 --- a/tensorflow/python/pywrap_dlopen_global_flags.py +++ b/tensorflow/python/pywrap_dlopen_global_flags.py @@ -28,13 +28,12 @@ from __future__ import print_function import ctypes import sys -# On UNIX-based platforms, pywrap_tensorflow is a SWIG-generated -# python library that dynamically loads _pywrap_tensorflow.so. The -# default mode for loading keeps all the symbol private and not -# visible to other libraries that may be loaded. Setting the mode to -# RTLD_GLOBAL to make the symbols visible, so that custom op libraries -# imported using `tf.load_op_library()` can access symbols defined in -# _pywrap_tensorflow.so. +# On UNIX-based platforms, pywrap_tensorflow is a SWIG-generated python library +# that dynamically loads _pywrap_tensorflow.so. The default mode for loading +# keeps all the symbol private and not visible to other libraries that may be +# loaded. Setting the mode to RTLD_GLOBAL to make the symbols visible, so that +# custom op libraries imported using `tf.load_op_library()` can access symbols +# defined in _pywrap_tensorflow.so. _use_rtld_global = (hasattr(sys, 'getdlopenflags') and hasattr(sys, 'setdlopenflags')) if _use_rtld_global: |