Custom Views for the Rest of Us
1Custom Views for the Rest of Us — Jacob Rice jacob.rice.cpp@gmail.com 2🎉🎆🎊 using namespace std::views; for (int i : iota(2) | filter(even) | transform(square)) std::cout << i << ' '; 1 AlgorithmThatSwaps(T& t1, T& t2) 2 { 3 // Algorithm stuff... 4 5 // More algorithm 6 } 7 Calls the custom version, if it exists (same for begin and end): 78std::ranges::iter_swap std::ranges::iter_move (P2387) New type: std::ranges::range_adaptor_closure. Ensure all closure objects inherit from this. Custom closure objects can then use it, too. 120namespace detail { template concept can_cons 0 码力 | 187 页 | 13.25 MB | 5 月前3GPU Resource Management On JDOS
GPU Resource Management On JDOS 梁永清 liangyongqing1@jd.com 提供的服务 1. 用于实验的 GPU 容器 2.基于 Kubeflow 的机器学习训练服务 3.模型管理和模型 Serving 服务 Experiment Training Serving 均基于容器,不对业务方直接提供 GPU 物理机 GPU 实验 JDOS 常规的容器服务0 码力 | 11 页 | 13.40 MB | 1 年前31.6 resource scheduling & container technology for financial service_yujun
Gopher China 2015 Resource Scheduling & Container Technology for Financial Service 动态资源管理和容器技术 在金融行业的架构探索和明天 余军 Gopher China 2015 Gopher China 2015 China 2015 求解之路的探索 n 他们是否解决了我们的问题? n No ① Mesos 采用了DRF(Dominant Resource Fairness) 调度机制。 YARN自带FIFO、Capacity Scheduler和Fair Scheduler(借鉴了 Mesos的DRF)。 ② Mes oop中Capacity Scheduler的调度机制,将所有资源分成若干个queue,每个 queue分配一定量的资源,每个user有一定的资源使用上限。 ③ Mesos采用了Resource Offer机制,这种调度机制面临着资源碎 片问题,即:每个节点上的资源不可能全部被分配完,剩下的一 点可能不足以让任何任务运行,这样,便产生了类似于操作系统 中的内存碎片问题。 0 码力 | 21 页 | 27.20 MB | 1 年前3Compile-Time Compression and Resource Generation with C++20
that take a user-suppiled lambda to generate the data needed to render our desired compile-time resource! These are e�ectively templated functions, but we will use the cleaner auto parameter syntax for0 码力 | 59 页 | 1.86 MB | 5 月前3Apache Wicket 8.x Reference Guide
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 16. Resource management with Wicket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 16.2. Resource references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 16.6. Resource dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 350 页 | 9.95 MB | 1 年前3Apache Wicket 7.x Reference Guide
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 16. Resource management with Wicket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 16.2. Resource references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 16.6. Resource dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 346 页 | 10.00 MB | 1 年前3Falcon v3.0.0 Documentation
HTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context Guide 19 Falcon Documentation, Release 3.0.0 (continued from previous page) def hook(req, resp, resource, params): length = req.content_length if length is not None and length > limit: msg = ('The size test this example go to the another terminal and run: $ http localhost:8000/1/things authorization:custom-token To visualize the application configuration the Inspect Module can be used: falcon-inspect-app0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.1 Documentation
HTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context Guide 19 Falcon Documentation, Release 3.0.1 (continued from previous page) def hook(req, resp, resource, params): length = req.content_length if length is not None and length > limit: msg = ('The size test this example go to the another terminal and run: $ http localhost:8000/1/things authorization:custom-token To visualize the application configuration the Inspect Module can be used: falcon-inspect-app0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.0-b2 Documentation
effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • No reliance on magic globals for routing and state management • Easy access to headers HTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context0 码力 | 340 页 | 1.15 MB | 1 年前3Falcon v2.0.0 Documentation
effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • Easy access to headers and bodies through request and response classes • DRY request process_response(self, req, resp, resource): if not hasattr(resp.context, 'result'): return resp.body = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params): length = req0 码力 | 184 页 | 671.87 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100