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

Function _tf_body

examples/tensorflow/bert/bert_example.py:169–173  ·  view source on GitHub ↗
(from_tensor)

Source from the content-addressed store, hash-verified

167 return eff_encoder_result
168
169 def _tf_body(from_tensor):
170 tf_encoder_result = tf_bert(input_tensor=from_tensor,
171 encoder_args=encoder_args,
172 attention_mask=attention_mask)
173 return tf_encoder_result
174
175 tf_while_tensor = tf.while_loop(_cond,
176 _tf_body,

Callers

nothing calls this directly

Calls 1

tf_bertFunction · 0.90

Tested by

no test coverage detected