Cleaned up includes in py_exception_registry.h

It doesn't need all of c_api.h, just the APIs in tf_status.h

PiperOrigin-RevId: 280674323
Change-Id: Ia7313b3342b40d38bd170ced04492e12da78be21
This commit is contained in:
Sergei Lebedev 2019-11-15 09:26:35 -08:00 committed by TensorFlower Gardener
parent a29f106161
commit 6ae4b4705a
3 changed files with 8 additions and 10 deletions

View File

@ -382,7 +382,7 @@ cc_library(
srcs = ["lib/core/py_exception_registry.cc"],
hdrs = ["lib/core/py_exception_registry.h"],
deps = [
"//tensorflow/c:c_api",
"//tensorflow/c:tf_status",
"//tensorflow/core:lib",
"//third_party/python_runtime:headers",
],

View File

@ -13,9 +13,11 @@ 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"
#include "tensorflow/core/platform/logging.h"
namespace tensorflow {

View File

@ -15,16 +15,12 @@ limitations under the License.
#ifndef TENSORFLOW_PYTHON_LIB_CORE_PY_EXCEPTION_REGISTRY_H_
#define TENSORFLOW_PYTHON_LIB_CORE_PY_EXCEPTION_REGISTRY_H_
#include <Python.h>
#include <map>
#include "tensorflow/c/c_api.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/protobuf/error_codes.pb.h"
#ifndef PyObject_HEAD
struct _object;
typedef _object PyObject;
#endif
#include "tensorflow/c/tf_status.h"
#include "tensorflow/core/lib/core/error_codes.pb.h"
namespace tensorflow {