| 48 | } |
| 49 | |
| 50 | size_t CombineHashes(std::initializer_list<size_t> hashes) { |
| 51 | size_t result = 0; |
| 52 | // Hash combiner used by TensorFlow core. |
| 53 | for (size_t hash : hashes) { |
| 54 | result = result ^ |
| 55 | (hash + 0x9e3779b97f4a7800ULL + (result << 10) + (result >> 4)); |
| 56 | } |
| 57 | return result; |
| 58 | } |
| 59 | |
| 60 | TfLiteStatus GetSizeOfType(TfLiteContext* context, const TfLiteType type, |
| 61 | size_t* bytes) { |
no outgoing calls
no test coverage detected