/
vshmidt
/
pytorch
Обзор
Документация
Войти
/
vshmidt
/
pytorch
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
caffe2/utils/threadpool/thread_pool_guard.cpp
15 строк
337 B
cyy
[3/N] Use internal linkage in C++ files (#151297)
05 май 2025, 20:48
05 май 2025, 20:48
45efa1a
Код
Авторство
О чём код?
#include <caffe2/utils/threadpool/thread_pool_guard.h> namespace caffe2 { static thread_local bool _NoPThreadPoolGuard_enabled = false; bool _NoPThreadPoolGuard::is_enabled() { return _NoPThreadPoolGuard_enabled; } void _NoPThreadPoolGuard::set_enabled(bool enabled) { _NoPThreadPoolGuard_enabled = enabled; } } // namespace at