Bookmarks overflow
Setting all negative values of a tensor to zero (in tensorflow)
X_with_negatives_set_to_zero = tf.nn.relu(X) X = tf.cast(X > 0, X.dtype) * X # X > 0 returns a boolean tensor
- Queue code: How to filter tensor from queue based on some predicate in tensorflow?
-
tf.sqrt(tf.reduce_mean(tf.squared_difference(Y1, Y2)))
but see comments in that answer
- MNIST Tensorflow vs code from Michael Nielsen - a mess
- regularization - notes on biases
- TensorFlow - numpy-like tensor indexing -
tf.gather_nd
example - How can I run a loop with a tensor as its range? (in tensorflow) -
tf.while_loop
- TensorFlow: using a tensor to index another tensor -
tf.gather
example - is it a special case ofgather_nd
? scatter_nd
- needs answer, as this one- Conditional assignment of tensor values in TensorFlow -
tf.where
and co - Set k-largest elements of a tensor to zero in TensorFlow - some C++ code too