![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
vwenyu-L
这个作者很懒,什么都没留下…
展开
-
tensorflow-003-summary_tensorboard
tf.scalar_summary("loss", cost)tf.scalar_summary("accuracy", acc)merged_summary_op = tf.merge_all_summaries()summary_writer = tf.train.SummaryWriter('./logs', graph=tf.get_default_graph()) #gr原创 2016-11-30 10:30:07 · 714 阅读 · 0 评论 -
tensorflow-serving
serving deployreference 1. http://blog.csdn.net/wangjian1204/article/details/68928656原创 2018-03-09 18:20:13 · 586 阅读 · 0 评论 -
tensorflow-tensorboard
tensorboardtf.summarytf.summary.scalar('/train/loss', loss)summary = tf.summary.merge_all()# writer = tf.summary.FileWriter('/outputs', tf.default_graph() )writer = tf.summary.FileWrit...原创 2018-03-09 16:30:16 · 477 阅读 · 0 评论 -
tensorflow-input data process
tf.gfiletf.imagereference 1. http://blog.csdn.net/White_Idiot/article/details/78825341原创 2018-03-09 16:26:37 · 405 阅读 · 0 评论 -
tensorflow-basic tutorial
CONTACT WEIBOREFERENCEIMAGE PROCESS TF.APP TENSORBOARD SERVINGSOMETHING原创 2017-12-09 09:59:56 · 361 阅读 · 0 评论 -
tensorflow-005-GAN02
--------VERSION-1---------import tensorflow as tf import numpy as np import mathimport globfrom skimage import io, transformdef lrelu(x, leak=0.2, name='lrelu'): with tf.variable_scope(name原创 2016-12-08 23:02:31 · 2453 阅读 · 0 评论 -
tensorflow-007-bazel
---------------------------------reference---------------1. http://www.jianshu.com/p/b2c41344c554#原创 2016-12-14 10:16:21 · 529 阅读 · 0 评论 -
tensorflow-005-GAN01
import numpy as np import tensorflow as tf from scipy.stats import normimport matplotlib.pyplot as pltbatch_size = 10hidden_size = 4 class DataDistribution(): def __init__(self): s原创 2016-12-08 11:01:22 · 1886 阅读 · 0 评论 -
tensorflow-004-RNN02
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt BATCH_START = 0TIME_STEPS = 20BATCH_SIZE = 50INPUT_SIZE = 1OUTPUT_SIZE = 1CELL_SIZE = 10def get_batch(): gl原创 2016-12-08 14:07:00 · 1108 阅读 · 0 评论 -
tensorflow-004-RNN01
LSTM RNN原创 2016-11-30 15:36:14 · 1126 阅读 · 0 评论 -
tensorflow-006-tensorboard
tensorboard原创 2016-12-09 16:23:35 · 632 阅读 · 0 评论 -
tensorflow-008-swig
c:/* A global variable */double Foox = 3.0;/* Compute the greatest common divisor of positive integers */int gcd(int x, int y) { int g; g = y; while (x > 0) { g = x; x = y % x;原创 2016-12-14 21:07:29 · 738 阅读 · 0 评论 -
tensorflow-001-Train
global_step = tf.Variable(0, name='global_step', trainable=False) lr = tf.train.exponential_decay(0.001, global_step, 200, 0.95, staircase=True) optimizer = tf.train.GradientDescentOptimizer(lr) #t原创 2016-11-29 11:38:30 · 603 阅读 · 0 评论 -
tensorflow-000-Overview
tensorflowGraph:Tensor:Operation:Train:原创 2016-11-29 16:45:10 · 266 阅读 · 0 评论 -
tensorflow-002-Tensor
v = tf.Variable(0, name='my_variable')sess = tf.Session()tf.train.write_graph(sess.graph_def, '/tmp/my-model', 'train.pbtxt')原创 2016-11-29 17:25:13 · 393 阅读 · 0 评论 -
tensorflow-tf.app
import tensorflow as tf import tqdmimport timetf.app.flags.DEFINE_string('var_name', 'hello world', 'var name')FLAG = tf.app.flags.FLAGSdef main(_): print(FLAG.var_name) for i in t...原创 2018-03-12 09:53:41 · 415 阅读 · 0 评论