
TensorFlow API 笔记
AnthongDai
QQ:1256491056
电话:18200174130
展开
-
一直在等待,一直会等待 RNN系列--3
1、tf.nn.dynamic_rnntf.nn.dynamic_rnn( cell, inputs, sequence_length=None, initial_state=None, dtype=None, parallel_iterations=None, swap_memory=False, time_major=False...原创 2018-10-12 11:07:21 · 253 阅读 · 0 评论 -
ffmpy:FFmpeg的封装器
ffmpy通过给定参数编译FFmpeg command line,然后根据各自选项使用Python的subprocess模块执行 Linux下或者windows下都需要优先安装ffmpeg软件翻译 2018-10-22 15:39:58 · 4888 阅读 · 0 评论 -
一直在等待,一直会等待 RNN系列--2
tf.nn.rnn_cell.MultiRNNCell        单层RNN的能力有限,有时需要多层的RNN。将x输入第一层RNN的后得到隐层状态h,这个隐层状态就相当于第二层RNN的输入,第二层RNN的隐层状态又相当于第三层RNN的输入,以此类推。num_units = [128, 64]原创 2018-10-10 23:15:38 · 263 阅读 · 0 评论 -
一直在等待,一直会等待 RNN系列--1
tf.nn.rnn_cell.BasicRNNCell 类BasicRNNCell继承于LayerRNNCell,是最基本的RNN单元初始化参数:__init__( num_units, activation=None, reuse=None, name=None,...原创 2018-10-10 21:13:16 · 549 阅读 · 0 评论 -
一直在等待,一直会等待 TensorFlow常见API--2
tf.nn.softmax_cross_entropy_with_logits(_sentinel=None,labels=None,logits=None,dim=-1,name=None)        计算 softmax(log原创 2018-10-10 18:36:40 · 356 阅读 · 0 评论 -
一直在等待,一直会等待 TensorFlow常见API--1
tf.placeholder(dtype, shape=None,name=None)        张量的占位符号,执行的时候一定要通过数据进行赋值,否则会出错。 注原创 2018-10-10 15:57:27 · 366 阅读 · 0 评论 -
一直在等待,一直会等待 TensorFlow常见API--5
tf.train.Saver__init__( var_list=None, reshape=False, sharded=False, max_to_keep=5, keep_checkpoint_every_n_hours=10000.0, name=None, restore_sequentially=False, saver...翻译 2018-10-14 16:45:52 · 440 阅读 · 0 评论 -
一直在等待,一直会等待 TensorFlow常见API--4
tf.nn.static_rnntf.nn.static_rnn( cell, inputs, initial_state=None, dtype=None, sequence_length=None, scope=None) 由RNNCell cell声明创建...原创 2018-10-14 10:49:24 · 253 阅读 · 0 评论 -
一直在等待,一直会等待 Python中经典语法问题--1
Python中with关键字https://blog.youkuaiyun.com/Shiroh_ms08/article/details/53859475http://blog.kissdata.com/2014/05/23/python-with.html原创 2018-10-13 09:54:02 · 1394 阅读 · 0 评论 -
一直在等待,一直会等待 TensorFlow常见API--3
tf.estimator.Estimator Estimator是与模型协同工作的高级工具。用于封装通过model_dn定义的模型,该模型给定了输入与一些其他的参数。返回完成training, evaluation, or predictions的操作。__init__( model_fn,...原创 2018-10-12 20:14:16 · 524 阅读 · 0 评论 -
一直在等待 一直会等待 tensorflow.ConfigProto() 配置信息
config = tf.ConfigProto()config.gpu_options.allow_growth = Trueconfig.log_device_placement = Trueconfig = tf.ConfigProto(allow_soft_placement=True, allow_soft_placement=True) config.gpu_options.p...原创 2018-10-28 15:23:06 · 537 阅读 · 0 评论