aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/hash
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-03-13 13:24:30 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-13 13:28:54 -0700
commitfc5885026be1fb2feb6a9ac27c6b8dc594e48ea7 (patch)
tree30a4ad1835d0c424a1d16d3f1dd91610cb4ca93c /tensorflow/core/lib/hash
parent571ed3ba4f8734ed891e81ad2b6bb9aadb816218 (diff)
Break the dependency between platform/types.h and bfloat16.h, and between
hash.h and bfloat16.h. This change introduces a generic mechanism for adapting types that are meant to be used in tensorflow's error objects. PiperOrigin-RevId: 188920678
Diffstat (limited to 'tensorflow/core/lib/hash')
-rw-r--r--tensorflow/core/lib/hash/hash.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/tensorflow/core/lib/hash/hash.h b/tensorflow/core/lib/hash/hash.h
index b90c6514f2..77b8031598 100644
--- a/tensorflow/core/lib/hash/hash.h
+++ b/tensorflow/core/lib/hash/hash.h
@@ -64,13 +64,6 @@ struct hash<T*> {
};
template <>
-struct hash<bfloat16> {
- size_t operator()(const bfloat16& t) const {
- return std::hash<float>()(static_cast<float>(t));
- }
-};
-
-template <>
struct hash<string> {
size_t operator()(const string& s) const {
return static_cast<size_t>(Hash64(s));