# tensorplay.get_thread_num Source: https://www.tensorplay.cn/docs/generated/tensorplay.get_thread_num.html ```python tensorplay.get_thread_num() → int ``` Returns the current thread number (starting from 0) in the current parallel region, or 0 in the sequential region