TensorFlow
ChadPro
这个作者很懒,什么都没留下…
展开
-
tf常用方法分析(Python)
列举几个常用的方法:1.tf.matmulmatmul( a, b, transpose_a=False, transpose_b=False, adjoint_a=False, adjoint_b=False, a_is_sparse=False, b_is_sparse=False, name=None)M原创 2017-04-30 12:28:20 · 2024 阅读 · 0 评论 -
TensorFlow滑动平均模型
我们使用滑动平均模型可以使模型在测试数据上更准确。在《TensorFlow:实战Google深度学习框架》原创 2017-04-29 11:50:38 · 3062 阅读 · 11 评论 -
TensorFlow-方法train.exponential_decay()
这个方法提供指数级衰减,用来让模型在训练后期,变化的精度高一些When training a model, it is often recommended to lower the learning rate asthe training progresses.This function applies an exponential decay functionto a provi原创 2017-04-29 16:14:18 · 2561 阅读 · 0 评论 -
TensorFlow常量&随机量&变量
一、 tf.constant() --- 常量constant( value, dtype=None, shape=None, name='Const', verify_shape=False) 使用例子: 1. tf.constant([1, 2, 3, 4, 5]) => [1, 2, 3, 4, 5] 2. tf.con原创 2017-06-29 17:53:17 · 904 阅读 · 0 评论 -
Python---BroadCast
1. Numpy1.创建 2*2*3的数据import numpy as npl1 = np.arange(12)l1 = np.reshape(l1, (2,2,3))print l1[[[ 0 1 2] [ 3 4 5]] [[ 6 7 8] [ 9 10 11]]]2.数据每一位加1import numpy as npl1 = np.arange...原创 2018-12-18 16:29:14 · 835 阅读 · 1 评论 -
Tensorflow---VariableScope and NameScope
1. VariableScope and NameScope1.1 variable scopetf.variable_scope()是用来实现变量共享 : 可以作用于var和op.e.g.with tf.variable_scope("v_scope_1"): v1 = tf.get_variable("variable1", [6], initializer=tf.consta...原创 2018-12-18 21:52:09 · 488 阅读 · 0 评论