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

Function question_features

demo/BERT/inference_varseqlen.py:118–120  ·  view source on GitHub ↗
(tokens, question)

Source from the content-addressed store, hash-verified

116 max_seq_length = args.sequence_length
117
118 def question_features(tokens, question):
119 # Extract features from the paragraph and question
120 return dp.convert_example_to_features(tokens, question, tokenizer, max_seq_length, doc_stride, args.max_query_length)
121
122 # Import necessary plugins for demoBERT
123 plugin_lib_name = "nvinfer_plugin.dll" if sys.platform == "win32" else "libnvinfer_plugin.so"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected