...comment format only change...
PiperOrigin-RevId: 175319401
This commit is contained in:
parent
80078ae4a9
commit
9372c01616
@ -28,13 +28,12 @@ from __future__ import print_function
|
|||||||
import ctypes
|
import ctypes
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# On UNIX-based platforms, pywrap_tensorflow is a SWIG-generated
|
# On UNIX-based platforms, pywrap_tensorflow is a SWIG-generated python library
|
||||||
# python library that dynamically loads _pywrap_tensorflow.so. The
|
# that dynamically loads _pywrap_tensorflow.so. The default mode for loading
|
||||||
# default mode for loading keeps all the symbol private and not
|
# keeps all the symbol private and not visible to other libraries that may be
|
||||||
# visible to other libraries that may be loaded. Setting the mode to
|
# loaded. Setting the mode to RTLD_GLOBAL to make the symbols visible, so that
|
||||||
# RTLD_GLOBAL to make the symbols visible, so that custom op libraries
|
# custom op libraries imported using `tf.load_op_library()` can access symbols
|
||||||
# imported using `tf.load_op_library()` can access symbols defined in
|
# defined in _pywrap_tensorflow.so.
|
||||||
# _pywrap_tensorflow.so.
|
|
||||||
_use_rtld_global = (hasattr(sys, 'getdlopenflags')
|
_use_rtld_global = (hasattr(sys, 'getdlopenflags')
|
||||||
and hasattr(sys, 'setdlopenflags'))
|
and hasattr(sys, 'setdlopenflags'))
|
||||||
if _use_rtld_global:
|
if _use_rtld_global:
|
||||||
|
Loading…
Reference in New Issue
Block a user