|
Mila 0.13.48
Deep Neural Network Library
|
Hash specialization for DeviceId. More...
Public Member Functions | |
| std::size_t | operator() (const Mila::Dnn::Compute::DeviceId &id) const noexcept |
| Compute hash value for a DeviceId. | |
Hash specialization for DeviceId.
Enables use of DeviceId as a key in unordered associative containers (std::unordered_map, std::unordered_set).
|
inlinenoexcept |
Compute hash value for a DeviceId.
Combines hashes of type and index using a deterministic mixing function.
| id | DeviceId to hash. |