从collection中取op
来源:互联网 发布:免费洗车的软件 编辑:程序博客网 时间:2024/05/17 09:10
#coding=utf-8import tensorflow as tfwith tf.name_scope("hello") as name_scope: arr1 = tf.get_variable("arr1", shape=[2,10],dtype=tf.float32) a = tf.Variable(0,name='a')arr2 = tf.get_variable('arr2', shape=[1,2], dtype=tf.float32)collection = tf.get_collection(tf.GraphKeys().GLOBAL_VARIABLES,'a')#选取集合中名称开头为'a'的opprint(*collection)
结果:
<tf.Variable 'arr1:0' shape=(2, 10) dtype=float32_ref> <tf.Variable 'arr2:0' shape=(1, 2) dtype=float32_ref>
阅读全文
0 0
- 从collection中取op
- 从网页中取字符串
- 从字符串中取颜色
- OP
- zend_execute中op的执行
- mongo 从 collection 中随机查询多条记录
- 如何从字符串中取数组
- 从资源文件中取图片
- 从文件夹路径中取文件夹名称
- 从CString 字符串中取文件名
- 如何从数据库中取图片
- 从DW中取数据到剪切板
- 从IE缓存中取文件
- 从内存中取认证图片
- 从表中随机取记录,语句。
- 从地址栏中取传递的参数
- 从地址栏中取传递的参数
- 从github中取android的sourcecode
- 详解Paint的setPathEffect(PathEffect effect)
- 《计算机组成原理》_第二版_唐硕飞_第一章知识点归纳
- 剑指offer-18:判断树的子结构
- logback配置
- 直接插入排序(Insertion Sort)
- 从collection中取op
- JS 字符串 常用操作
- poj 1679 The Unique MST
- 【cocos2d-x 源码剖析】启动窗口
- 【C++】G++命令简介
- eclispe 设置自动提示
- MySQL 触发器
- logback属性
- 网卡混杂模式Promiscuous与linux上混杂模式的设置