MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / hash_combine

Function hash_combine

common/train.cpp:360–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360size_t hash_combine(size_t h1, size_t h2) {
361 return h1 ^ (h2 << 1);
362}
363
364size_t compute_samples_hash(const char* fn, const size_t* samples_begin, const size_t* samples_size, size_t sample_count) {
365 std::hash<std::string> h_string;

Callers 1

compute_samples_hashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected