aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/pywrap_tensorflow.py
Commit message (Collapse)AuthorAge
* Update links to install pages.Gravatar Billy Lamberta2018-09-20
| | | | PiperOrigin-RevId: 213917946
* Support --config=monolithic in tf.sysconfig.get_link_flags() (#15139)Gravatar Alex Sergeev2017-12-15
| | | | * Don't add -ltensorflow_framework to sysconfig LFLAGS if the build is monolithic
* Add tf.sysconfig.get_compile_flags() & tf.sysconfig.get_link_flags() for ↵Gravatar Alex Sergeev2017-10-31
| | | | | | | | | | | | | | | | | | | | custom operators (#13496) * Add flags for custom op compilation * Move ABI logic into version_info.cc * Add #include <string> to be able to read _GLIBCXX_USE_CXX11_ABI value. * Make flags to be lists * Add _flag to cxx11_abi * Address review comment. * Move CXX import to the top level. * Add goldens update
* Remove RTLD_GLOBAL when loading pywrap_tensorflowGravatar Allen Lavoie2017-09-21
| | | | | | | | | | | | | | Splits out a shared object (//tensorflow/libtensorflow_framework.so) with core TensorFlow functionality but neither ops nor kernels. This object does include registries for ops, kernels, filesystems, etc. The expectation is that shared objects containing custom ops will have a runtime dependency on this framework shared object: TensorFlow will load the custom op shared object, and the custom op shared object will use the symbols from the framework shared object to register its ops/kernels/etc. rather than (as before this change) relying on those symbols being in the global symbol table. In this mode, TensorFlow artifacts (_pywrap_tensorflow.so for Python, libtensorflow.so for the C API; currently excluding Android artifacts) will depend on the framework shared object, which will be packaged with the Python pip package and other language distributions. This means that custom ops targeting the framework shared object will work in any language (C++, Java, Go; previously custom ops in these languages required custom Bazel builds). Adds a config option which reproduces the old behavior (--config=monolithic), which for Python means building a monolithic pywrap_tensorflow shared object and loading its symbols into the global symbol table (with RTLD_GLOBAL). As before, there will be no extra-Bazel custom op support for other languages when compiling in this mode. Does not change behavior on Windows; the cmake build is still monolithic. Requires using tf_cc_binary, tf_cc_test, and (rarely) tf_cc_shared_object rules to link in the framework shared object when adding new TensorFlow build rules. PiperOrigin-RevId: 169572746
* Add a platform-dependent self-check that runs during `import tensorflow`.Gravatar Derek Murray2017-09-19
| | | | | | | | This gives us the opportunity to raise actionable error messages (e.g. about missing DLLs on Windows) that are more useful than the loader errors we get from a failed SWIG import. PiperOrigin-RevId: 169315291
* Fix link in import error message.Gravatar Martin Wicke2017-03-06
| | | | Change: 149308271
* Fix the dlopen contrib test hack by making a pywrap_tensorflow module that ↵Gravatar Jonathan Hseu2017-02-28
imports pywrap_tensorflow_internal with RTLD_GLOBAL. Fixes #6568 Change: 148843302