From fc5885026be1fb2feb6a9ac27c6b8dc594e48ea7 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 13 Mar 2018 13:24:30 -0700 Subject: 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 --- tensorflow/core/lib/hash/hash.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tensorflow/core/lib/hash') 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 @@ -63,13 +63,6 @@ struct hash { } }; -template <> -struct hash { - size_t operator()(const bfloat16& t) const { - return std::hash()(static_cast(t)); - } -}; - template <> struct hash { size_t operator()(const string& s) const { -- cgit v1.2.3