We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c4064 commit 17951faCopy full SHA for 17951fa
third_party/xla_client/util.h
@@ -161,6 +161,10 @@ size_t Hash(const T& value) {
161
return DataHash(&value, sizeof(value));
162
}
163
164
+static inline size_t Hash(const std::string& value) {
165
+ return std::hash<std::string>()(value);
166
+}
167
+
168
// Forward declare to allow hashes of vectors of vectors to work.
169
template <typename T>
170
size_t ContainerHash(const T& values);
0 commit comments