
Tensorflow--tf.Variable与tf.get_variable()
��������������� ���������������
发布日期:2021-05-10 00:15:12
浏览次数:21
分类:精选文章
本文共 1591 字,大约阅读时间需要 5 分钟。
# TensorFlow������������������������tf.Variable()���tf.get_variable()���TensorFlow���������������������������������������������������������`tf.Variable()`���`tf.get_variable()`������������������������������������������������������������������������������������������������������������������������������������������������������������������������1. **tf.Variable()**������������������������������������ kraje��������������������������������������������������� 2. **tf.get_variable()**���������������������������������������������������������������������������������������������`tf.get_variable()`���������������������������������������������Variable���`reuse`���������`True`������������������������������������������������������������������������```pythonimport tensorflow as tfwith tf.variable_scope("scope1"): w1 = tf.get_variable("w1", shape=[]) w2 = tf.Variable(0.0, name="w2")with tf.variable_scope("scope1", reuse=True): w1_p = tf.get_variable("w1", shape=[]) w2_p = tf.Variable(1.0, name="w2")# ������������# w1 is w1_p: True���������������������������������������# w2 is w2_p: False������������������������������������������������������
���������
tf.get_variable()
������������������������������������������������tf.Variable()
���������������������������������������������������������������������������������������������������������������������������������������������������TensorFlow���������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
第一次来,支持一个
[***.219.124.196]2025年04月18日 02时37分21秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
vue书籍整理
2021-05-09
记Java中有关内存的简单认识
2021-05-09
Mybatis配置解析
2021-05-09
http头部 Expect
2021-05-09
Hadoop(十六)之使用Combiner优化MapReduce
2021-05-09
C#实现outlook自动签名
2021-05-09
MySQL 5.5 My.cnf 模版
2021-05-09
使用mysqladmin ext了解MySQL运行状态【转】
2021-05-09
【程序员的脑洞故事】盘古,开辟天地
2021-05-09
《机器学习Python实现_10_06_集成学习_boosting_gbdt分类实现》
2021-05-09
对比讲解lambda表达式与传统接口函数实现方式
2021-05-09
使用java8API遍历过滤文件目录及子目录及隐藏文件
2021-05-09
精讲响应式WebClient第2篇-GET请求阻塞与非阻塞调用方法详解
2021-05-09
java9系列第二篇-资源自动关闭的语法增强
2021-05-09
CoreCLR源码探索(八) JIT的工作原理(详解篇)
2021-05-09
【数组】59. 螺旋矩阵 II
2021-05-09
【哈希表】1. 两数之和
2021-05-09
【栈和队列】232. 用栈实现队列
2021-05-09
linux之压缩和解压
2021-05-09