MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / _cond

Function _cond

examples/tensorflow/decoder/utils/decoding.py:244–245  ·  view source on GitHub ↗
(word_ids, cum_log_probs, finished, step, outputs, my_cache, extra_vars, op_self_cache, op_mem_cache)

Source from the content-addressed store, hash-verified

242 memory_sequence_length, multiplier=beam_width)
243
244 def _cond(word_ids, cum_log_probs, finished, step, outputs, my_cache, extra_vars, op_self_cache, op_mem_cache):
245 return tf.reduce_any(tf.logical_not(finished))
246
247 def _body(word_ids, cum_log_probs, finished, step, outputs, my_cache, extra_vars, op_self_cache, op_mem_cache):
248 logits, my_cache, op_self_cache, op_mem_cache = decoding_body(word_ids,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected