diff options
author | 2016-08-19 10:57:15 -0800 | |
---|---|---|
committer | 2016-08-19 12:03:49 -0700 | |
commit | 767377749cb9f7f4df1f95db342c88ca3c6ee1f2 (patch) | |
tree | 288ef21efa24f7b048bcb5df58c0a61cebbdea95 /tensorflow/core/lib/hash | |
parent | 0b9f0f53ddbf693bb30afb211a6d514a1fce1c22 (diff) |
ClientSession wraps a Session object and provides Run methods that operate on
the C++ API's Output/Operation object instead of strings.
Change: 130776638
Diffstat (limited to 'tensorflow/core/lib/hash')
-rw-r--r-- | tensorflow/core/lib/hash/hash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/lib/hash/hash.h b/tensorflow/core/lib/hash/hash.h index 4d3cb9cc9d..3c71e7d6cc 100644 --- a/tensorflow/core/lib/hash/hash.h +++ b/tensorflow/core/lib/hash/hash.h @@ -38,6 +38,10 @@ inline uint64 Hash64(const string& str) { return Hash64(str.data(), str.size()); } +inline uint64 Hash64Combine(uint64 a, uint64 b) { + return a ^ (b + 0x9e3779b97f4a7800ULL + (a << 10) + (a >> 4)); +} + } // namespace tensorflow #endif // TENSORFLOW_LIB_HASH_HASH_H_ |