MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / decoder_stmt

Function decoder_stmt

demo/HuggingFace/BART/measurements.py:60–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 BART_decoder.set_return_device("cuda" if use_cuda else "cpu")
59
60 def decoder_stmt():
61 BART_decoder(
62 input_ids=input_ids, encoder_hidden_states=encoder_last_hidden_state, use_cache=use_cache,
63 past_key_values=past_key_values
64 )
65
66 decoder_e2e_time = measure_python_inference_code(decoder_stmt, timing_profile)
67

Callers 1

decoder_inferenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected