TensorFlow控制算符
控制OPs
Neural Network Building Blocks
tf.softmax
tf.Sigmod
tf.ReLU
tf.Convolution2D
tf.MaxPool
Checkpointing
tf.Save
tf.Restore
Queue and Synchronization
tf.Enqueue
tf.Dequeue
tf.MutexAcquire
tf.MutexRelease
Control Flow
tf.count_up_to
tf.cond
pred
为True
,执行true_fn
,否则执行false_fn
1 | tf.cond( |