tf.sysconfig.get_compile_flags | TensorFlow v2.16.1 (original) (raw)
tf.sysconfig.get_compile_flags
Stay organized with collections Save and categorize content based on your preferences.
Returns the compilation flags for compiling with TensorFlow.
View aliases
Compat aliases for migration
SeeMigration guide for more details.
tf.compat.v1.sysconfig.get_compile_flags
tf.sysconfig.get_compile_flags()
The returned list of arguments can be passed to the compiler for compiling against TensorFlow headers. The result is platform dependent.
For example, on a typical Linux system with Python 3.7 the following command prints ['-I/usr/local/lib/python3.7/dist-packages/tensorflow/include', '-D_GLIBCXX_USE_CXX11_ABI=1', '-DEIGEN_MAX_ALIGN_BYTES=64']
print(tf.sysconfig.get_compile_flags())
Returns |
---|
A list of strings for the compiler flags. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.