线程池ThreadPool
来源:互联网 发布:淘宝店名片设计 编辑:程序博客网 时间:2024/04/30 02:44
tensorflow::tensorflow/core/lib/core/threadpool.h
namespace tensorflow {namespace thread {
class ThreadPool { public: ThreadPool(Env* env, const ThreadOptions& thread_options, const string& name, int num_threads, bool low_latency_hint); ThreadPool(Env* env, const string& name, int num_threads);
ThreadPool(Env* env, const ThreadOptions& thread_options, const string& name, int num_threads);
~ThreadPool();
void Schedule(std::function<void()> fn); void ParallelFor(int64 total, int64 cost_per_unit, std::function<void(int64, int64)> fn);
void ParallelForWithWorkerId( int64 total, int64 cost_per_unit, const std::function<void(int64, int64, int)>& fn);
int NumThreads() const;
int CurrentThreadId() const;
struct Impl;
private: std::unique_ptr<Impl> impl_; TF_DISALLOW_COPY_AND_ASSIGN(ThreadPool);};
}}
阅读全文
0 0
- ThreadPool线程池
- ThreadPool 线程池[c#]
- ThreadPool(线程池)
- ThreadPool 线程池[c#]
- ThreadPool 线程池[c#]
- 线程池(ThreadPool)
- ThreadPool 线程池
- ThreadPool线程池
- 浅谈ThreadPool 线程池
- 自定义线程池ThreadPool
- java线程池(ThreadPool)
- Java_线程池ThreadPool
- java ThreadPool 线程池
- 线程池ThreadPool
- ThreadPool 线程池[c#]
- 线程池ThreadPool
- ThreadPool线程池
- 浅谈ThreadPool 线程池
- java 基本语法
- php cookie和session的代码操作
- 云服务器 ECS Linux 系统安装图形化桌面
- Java算法面试题(007) 蒙提霍尔问题(三门问题)
- kubernetes 亲和力
- 线程池ThreadPool
- 基于Microsoft Visual Studio 2008 的delta3d安装
- 【读书笔记】iOS-定位服务与地图应用开发
- redis面试
- Go 反射
- 第三方开源库 RxJava
- python环境变量配置
- Cell Programming教程(SIMD入门)
- Django框架全面讲解 -- Form