|
Mila
Deep Neural Network Library
|
Thread-safe generator for unique tensor identifiers. More...
Static Public Member Functions | |
| static size_t | getNextId () |
| Generates the next unique identifier atomically. | |
Thread-safe generator for unique tensor identifiers.
Provides atomic generation of unique IDs for tensor instances.
|
inlinestatic |
Generates the next unique identifier atomically.
Uses relaxed memory ordering for uniqueness across threads.