摘要: from collections.abc import Iterator class Company(object): def __init__(self, employee_list): self.employee = employee_list def __iter__(self): return MyIterator(self.emplo... 阅读全文
posted @ 2019-06-24 22:46 下路派出所 阅读(479) 评论(0) 推荐(0) 编辑
摘要: Session概述 1. Session是TensorFlow前后端连接的桥梁。用户利用session使得client能够与master的执行引擎建立连接,并通过session.run()来触发一次计算。它建立了一套上下文环境,封装了operation计算以及tensor求值的环境。 2. sess 阅读全文
posted @ 2019-06-24 18:08 下路派出所 阅读(836) 评论(0) 推荐(0) 编辑
摘要: TensorFlow系统架构 TensorFlow设计十分精巧,基于分层和模块化的设计思想进行开发的。框架如下图 整个框架以C API为界,分为前端和后端两大部分。 模型构造和执行流程 TensorFlow的一大特点是,图的构造和执行相分离。用户添加完算子,构建好整图后,才开始进行训练和执行,也就是 阅读全文
posted @ 2019-06-24 15:30 下路派出所 阅读(2282) 评论(0) 推荐(0) 编辑