Adding tensorflow/core/platform:fingerprint, and wiring into tensorflow/core/BUILD.
PiperOrigin-RevId: 276590099 Change-Id: I03ef62b7fccfa7a25151a9666f95c7448d09a9ea
This commit is contained in:
parent
eb0d31e7b7
commit
904a4f18af
@ -2314,6 +2314,7 @@ cc_library(
|
||||
"//tensorflow/core/platform:env",
|
||||
"//tensorflow/core/platform:error",
|
||||
"//tensorflow/core/platform:file_statistics",
|
||||
"//tensorflow/core/platform:fingerprint",
|
||||
"//tensorflow/core/platform:load_library",
|
||||
"//tensorflow/core/platform:logger",
|
||||
"//tensorflow/core/platform:mutex",
|
||||
|
@ -19,6 +19,7 @@ load(
|
||||
"tf_additional_test_srcs",
|
||||
"tf_protobuf_compiler_deps",
|
||||
"tf_protobuf_deps",
|
||||
"tf_fingerprint_deps",
|
||||
)
|
||||
load(
|
||||
"//tensorflow/core/platform:default/build_refactor.bzl",
|
||||
@ -209,6 +210,15 @@ cc_library(
|
||||
deps = [":types"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "fingerprint",
|
||||
hdrs = ["fingerprint.h"],
|
||||
deps = [
|
||||
":stringpiece",
|
||||
":types",
|
||||
] + tf_fingerprint_deps(),
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "gif",
|
||||
hdrs = ["gif.h"],
|
||||
@ -601,6 +611,7 @@ cc_binary(
|
||||
":dynamic_annotations",
|
||||
":env_time",
|
||||
":file_statistics",
|
||||
":fingerprint",
|
||||
":gif",
|
||||
":jpeg",
|
||||
":macros",
|
||||
|
@ -24,6 +24,7 @@ limitations under the License.
|
||||
#include "tensorflow/core/platform/dynamic_annotations.h"
|
||||
#include "tensorflow/core/platform/env_time.h"
|
||||
#include "tensorflow/core/platform/file_statistics.h"
|
||||
#include "tensorflow/core/platform/fingerprint.h"
|
||||
#include "tensorflow/core/platform/gif.h"
|
||||
#include "tensorflow/core/platform/host_info.h"
|
||||
#include "tensorflow/core/platform/init_main.h"
|
||||
|
@ -689,6 +689,11 @@ def tf_additional_rpc_deps():
|
||||
def tf_additional_tensor_coding_deps():
|
||||
return []
|
||||
|
||||
def tf_fingerprint_deps():
|
||||
return [
|
||||
"@farmhash_archive//:farmhash",
|
||||
]
|
||||
|
||||
def tf_protobuf_deps():
|
||||
return if_static(
|
||||
[
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
#ifndef TENSORFLOW_CORE_PLATFORM_FINGERPRINT_H_
|
||||
#define TENSORFLOW_CORE_PLATFORM_FINGERPRINT_H_
|
||||
|
||||
#include "tensorflow/core/lib/core/stringpiece.h"
|
||||
#include "tensorflow/core/platform/stringpiece.h"
|
||||
#include "tensorflow/core/platform/types.h"
|
||||
|
||||
// The following line is used by copybara to set or unset the USE_OSS_FARMHASH
|
||||
|
Loading…
x
Reference in New Issue
Block a user