MCPcopy Create free account
hub / github.com/UCSC-VLAA/OpenVision / func5

Function func5

src/transforms/bert_ops.py:570–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

568 original_labels2_token_ids, output_token_len)
569
570 def func5(): return tf.concat([padded_original_labels2_token_ids[:, :-1], tf.fill([count3, 1], eos_token)], axis=1)
571 def func6(): return padded_original_labels2_token_ids
572 padded_original_labels2_token_ids = tf.cond(tf.equal(original_labels2_pad_mask[0, -1], tf.constant(1)), func5, func6)
573

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected