diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-05-23 17:26:04 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-23 17:28:36 -0700 |
commit | 437015dba0da9db86b8b97cb12e4fdd055479007 (patch) | |
tree | 7639c2876b1cfa753c369c8ae70795a74e24efd0 /tensorflow/python/lib | |
parent | 21e6addc0eb2376a7596fa648aaa55761a247170 (diff) |
Internal cleanup to remove a difference from the code on github.
PiperOrigin-RevId: 197817738
Diffstat (limited to 'tensorflow/python/lib')
-rw-r--r-- | tensorflow/python/lib/core/py_exception_registry.cc | 4 | ||||
-rw-r--r-- | tensorflow/python/lib/core/py_func.cc | 4 | ||||
-rw-r--r-- | tensorflow/python/lib/core/py_util.cc | 3 | ||||
-rw-r--r-- | tensorflow/python/lib/core/safe_ptr.h | 1 |
4 files changed, 7 insertions, 5 deletions
diff --git a/tensorflow/python/lib/core/py_exception_registry.cc b/tensorflow/python/lib/core/py_exception_registry.cc index 6637de632b..d03cf8930b 100644 --- a/tensorflow/python/lib/core/py_exception_registry.cc +++ b/tensorflow/python/lib/core/py_exception_registry.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/python/lib/core/py_exception_registry.h" - #include <Python.h> +#include "tensorflow/python/lib/core/py_exception_registry.h" + namespace tensorflow { PyExceptionRegistry* PyExceptionRegistry::singleton_ = nullptr; diff --git a/tensorflow/python/lib/core/py_func.cc b/tensorflow/python/lib/core/py_func.cc index 8c6bb7955a..30c1a9c759 100644 --- a/tensorflow/python/lib/core/py_func.cc +++ b/tensorflow/python/lib/core/py_func.cc @@ -17,6 +17,8 @@ limitations under the License. #include <array> +#include <Python.h> + #include "numpy/arrayobject.h" #include "tensorflow/c/eager/c_api.h" #include "tensorflow/c/eager/c_api_internal.h" @@ -33,8 +35,6 @@ limitations under the License. #include "tensorflow/python/lib/core/py_util.h" #include "tensorflow/python/lib/core/safe_ptr.h" -#include <Python.h> - namespace tensorflow { namespace { diff --git a/tensorflow/python/lib/core/py_util.cc b/tensorflow/python/lib/core/py_util.cc index 00cbf0c532..dcda1f4a44 100644 --- a/tensorflow/python/lib/core/py_util.cc +++ b/tensorflow/python/lib/core/py_util.cc @@ -15,9 +15,10 @@ limitations under the License. #include "tensorflow/python/lib/core/py_util.h" +#include <Python.h> + #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/strings/strcat.h" -#include <Python.h> namespace tensorflow { namespace { diff --git a/tensorflow/python/lib/core/safe_ptr.h b/tensorflow/python/lib/core/safe_ptr.h index 32d2868886..35d71f7629 100644 --- a/tensorflow/python/lib/core/safe_ptr.h +++ b/tensorflow/python/lib/core/safe_ptr.h @@ -19,6 +19,7 @@ limitations under the License. #include <memory> #include <Python.h> + #include "tensorflow/c/c_api.h" #include "tensorflow/c/eager/c_api.h" |