-
Notifications
You must be signed in to change notification settings - Fork 134
TensorFlow lesser known features
Albert Zeyer edited this page Jun 5, 2020
·
16 revisions
I sometimes stumble upon features in TensorFlow which look potentially powerful or interesting, which I did not know about before.
This wiki page is supposed to be a collection of such features.
(Once some of them becomes more central to RETURNN, we might want to have a separate wiki page for it.
E.g. Distributed TensorFlow.
To find them, it is interesting to just browse through tf.raw_ops.
-
tf.math.divide_no_nan/tf.div_no_nan. Computes x/y and return 0 if y==0 (no nan). tf.math.reduce_euclidean_norm-
tf.switch_caseandtf.case tf.strings.to_hash_buckettf.strings.ngrams-
tf.compat.v1.get_session_handle. keep tensor alive in the session, and access it in future calls viaget_session_tensor, or use it forfeed_dict
-
DenseHashTable(and other (hash) tables) -
TensorList. list of tensors. -
Stack. stack of tensors. -
TensorArray(probably more well known). array of tensors. -
ConditionalAccumulator. accumulate / aggregate gradients -
TemporaryVariable. variable which only lives within a single step. -
Barrier/Mutex