摘要:
学习率的三种调整方式:固定的,指数的,多项式的def _configure_learning_rate(num_samples_per_epoch, global_step): """Configures the learning rate. Args: num_samples_per_epoch: 阅读全文
摘要:
tf.app.flags.FLAGS 的使用,主要是在用命令行执行程序时,需要传些参数,代码如下:新建一个名为:app_flags.py 的文件。 #coding:utf-8 import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flag 阅读全文
摘要:
作用:参数调用文件一:from easydict import EasyDict as edictimport numpy as npconfig = edict()config.IMG_HEIGHT = 375config.IMG_WIDTH = 1242config.EXP_THRESH = 1 阅读全文
摘要:
该函数用来控制程序执行流,相当于if-else了import tensorflow as tffrom tensorflow.python.ops import control_flow_ops a = tf.constant(1)b = tf.constant(3) condition = tf. 阅读全文