Remove dependency on lib/core:status within tensorflow/core/platform

PiperOrigin-RevId: 282799700
Change-Id: I6bbff913e7f07189a92328faffeaa7197925eafa
This commit is contained in:
Gunhan Gulsoy 2019-11-27 10:58:43 -08:00 committed by TensorFlower Gardener
parent b1e14472c8
commit e2b52c0935
25 changed files with 40 additions and 31 deletions

View File

@ -173,9 +173,9 @@ cc_library(
hdrs = ["error.h"],
deps = [
":platform",
":status",
":strcat",
":types",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/platform:strcat",
],
)

View File

@ -17,8 +17,9 @@ limitations under the License.
#define TENSORFLOW_CORE_PLATFORM_CLOUD_AUTH_PROVIDER_H_
#include <string>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -16,9 +16,9 @@ limitations under the License.
#ifndef TENSORFLOW_CORE_PLATFORM_CLOUD_COMPUTE_ENGINE_METADATA_CLIENT_H_
#define TENSORFLOW_CORE_PLATFORM_CLOUD_COMPUTE_ENGINE_METADATA_CLIENT_H_
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/cloud/http_request.h"
#include "tensorflow/core/platform/cloud/retrying_utils.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -19,14 +19,15 @@ limitations under the License.
#include <string>
#include <unordered_map>
#include <vector>
#include <curl/curl.h>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/cloud/http_request.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/macros.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/types.h"
namespace tensorflow {

View File

@ -22,11 +22,12 @@ limitations under the License.
#include <memory>
#include <string>
#include <vector>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/platform/notification.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/thread_annotations.h"
#include "tensorflow/core/platform/types.h"

View File

@ -21,7 +21,6 @@ limitations under the License.
#include <utility>
#include <vector>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/cloud/auth_provider.h"
#include "tensorflow/core/platform/cloud/compute_engine_metadata_client.h"
#include "tensorflow/core/platform/cloud/compute_engine_zone_provider.h"
@ -32,6 +31,7 @@ limitations under the License.
#include "tensorflow/core/platform/cloud/http_request.h"
#include "tensorflow/core/platform/cloud/retrying_file_system.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -19,12 +19,13 @@ limitations under the License.
#include <string>
#include <unordered_map>
#include <vector>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/macros.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/types.h"
namespace tensorflow {

View File

@ -20,14 +20,15 @@ limitations under the License.
#include <fstream>
#include <string>
#include <vector>
#include <curl/curl.h>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/cloud/curl_http_request.h"
#include "tensorflow/core/platform/macros.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/test.h"
#include "tensorflow/core/platform/types.h"

View File

@ -17,10 +17,11 @@ limitations under the License.
#define TENSORFLOW_CORE_PLATFORM_CLOUD_OAUTH_CLIENT_H_
#include <memory>
#include "include/json/json.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/cloud/http_request.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -22,12 +22,13 @@ limitations under the License.
#include <memory>
#include <string>
#include <vector>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/cloud/file_block_cache.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/platform/notification.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/thread_annotations.h"
#include "tensorflow/core/platform/types.h"

View File

@ -21,11 +21,11 @@ limitations under the License.
#include <vector>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/random/random.h"
#include "tensorflow/core/platform/cloud/retrying_utils.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -17,7 +17,8 @@ limitations under the License.
#define TENSORFLOW_CORE_PLATFORM_CLOUD_RETRYING_UTILS_H_
#include <functional>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_CORE_PLATFORM_CLOUD_TIME_UTIL_H_
#define TENSORFLOW_CORE_PLATFORM_CLOUD_TIME_UTIL_H_
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -17,8 +17,9 @@ limitations under the License.
#define TENSORFLOW_CORE_PLATFORM_CLOUD_ZONE_PROVIDER_H_
#include <string>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -80,7 +80,6 @@ TF_DEFAULT_PLATFORM_LIBRARIES = {
"//tensorflow/core/lib/core:blocking_counter",
"//tensorflow/core/lib/core:error_codes_proto_cc",
"//tensorflow/core/lib/core:errors",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/lib/core:stringpiece",
"//tensorflow/core/lib/io:path",
"//tensorflow/core/platform",
@ -97,6 +96,7 @@ TF_DEFAULT_PLATFORM_LIBRARIES = {
"//tensorflow/core/platform:platform_port",
"//tensorflow/core/platform:protobuf",
"//tensorflow/core/platform:setround",
"//tensorflow/core/platform:status",
"//tensorflow/core/platform:stringpiece",
"//tensorflow/core/platform:stringprintf",
"//tensorflow/core/platform:strcat",
@ -132,9 +132,9 @@ TF_DEFAULT_PLATFORM_LIBRARIES = {
],
"deps": [
"//tensorflow/core/lib/core:errors",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/platform:strcat",
"//tensorflow/core/platform:protobuf",
"//tensorflow/core/platform:status",
"//tensorflow/core/platform:strcat",
],
"visibility": ["//visibility:private"],
"tags": ["no_oss", "manual"],
@ -149,7 +149,7 @@ TF_DEFAULT_PLATFORM_LIBRARIES = {
],
"deps": [
"//tensorflow/core/lib/core:errors",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/platform:status",
],
"visibility": ["//visibility:private"],
"tags": ["no_oss", "manual"],
@ -405,7 +405,6 @@ TF_WINDOWS_PLATFORM_LIBRARIES = {
"//tensorflow/core/lib/core:blocking_counter",
"//tensorflow/core/lib/core:error_codes_proto_cc",
"//tensorflow/core/lib/core:errors",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/lib/core:stringpiece",
"//tensorflow/core/lib/io:path",
"//tensorflow/core/platform",
@ -422,6 +421,7 @@ TF_WINDOWS_PLATFORM_LIBRARIES = {
"//tensorflow/core/platform:platform_port",
"//tensorflow/core/platform:protobuf",
"//tensorflow/core/platform:setround",
"//tensorflow/core/platform:status",
"//tensorflow/core/platform:stringpiece",
"//tensorflow/core/platform:stringprintf",
"//tensorflow/core/platform:strcat",
@ -458,7 +458,7 @@ TF_WINDOWS_PLATFORM_LIBRARIES = {
],
"deps": [
"//tensorflow/core/lib/core:errors",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/platform:status",
"//tensorflow/core/platform:windows_wide_char_impl",
],
"visibility": ["//visibility:private"],

View File

@ -16,7 +16,7 @@ limitations under the License.
#include "tensorflow/core/platform/human_readable_json.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/strcat.h"
namespace tensorflow {

View File

@ -28,12 +28,12 @@ limitations under the License.
#include <time.h>
#include <unistd.h>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/default/posix_file_system.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/error.h"
#include "tensorflow/core/platform/file_system_helper.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/strcat.h"
#include "tensorflow/core/protobuf/error_codes.pb.h"

View File

@ -24,7 +24,6 @@ limitations under the License.
#include <vector>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/env_time.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/macros.h"
@ -32,6 +31,7 @@ limitations under the License.
#include "tensorflow/core/platform/numa.h"
#include "tensorflow/core/platform/platform.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/stringpiece.h"
#include "tensorflow/core/platform/types.h"

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <errno.h>
#include <string.h>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/strcat.h"
namespace tensorflow {

View File

@ -18,8 +18,8 @@ limitations under the License.
#include <string>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/platform.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -19,11 +19,11 @@ limitations under the License.
#include <string>
#include <vector>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/platform.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/str_util.h"
#include "tensorflow/core/platform/threadpool.h"

View File

@ -19,7 +19,7 @@ limitations under the License.
#include <string>
#include <vector>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -17,7 +17,6 @@ limitations under the License.
#include <errno.h>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/lib/strings/strcat.h"
#include "tensorflow/core/platform/env.h"
@ -26,6 +25,7 @@ limitations under the License.
#include "tensorflow/core/platform/file_system_helper.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/platform/status.h"
#include "third_party/hadoop/hdfs.h"
namespace tensorflow {

View File

@ -16,8 +16,8 @@ limitations under the License.
#ifndef TENSORFLOW_CORE_PLATFORM_HUMAN_READABLE_JSON_H_
#define TENSORFLOW_CORE_PLATFORM_HUMAN_READABLE_JSON_H_
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_CORE_PLATFORM_LOAD_LIBRARY_H_
#define TENSORFLOW_CORE_PLATFORM_LOAD_LIBRARY_H_
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/status.h"
namespace tensorflow {