Enable calling the C API by default.
authorSkye Wanderman-Milne <skyewm@google.com>
Wed, 4 Apr 2018 02:29:53 +0000 (19:29 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 4 Apr 2018 02:32:55 +0000 (19:32 -0700)
commit0f60a7d10102048625e45c07a59c71c0c4375529
treec290f455dc3f8aaf69c94cd510743855ee8954da
parentede6e1ff31531cae98844676af4981a821760188
Enable calling the C API by default.

Enabling the C API makes TensorFlow's Python code to call the TensorFlow C API for low-level graph construction. This should cause no noticeable changes for the most part. One known difference is improved static shape inference, meaning some shape errors will be surfaced during graph construction instead of at runtime.

Note that this can be disabled by setting the environment variable TF_C_API_GRAPH_CONSTRUCTION=0 (for now, eventually this option will be removed).

PiperOrigin-RevId: 191536563
tensorflow/python/framework/ops.py