W3cubDocs

/TensorFlow

tf.sysconfig.get_compile_flags

Returns the compilation flags for compiling with TensorFlow.

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.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/sysconfig/get_compile_flags