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

Function question_features

demo/BERT/inference.py:119–121  ·  view source on GitHub ↗
(tokens, question)

Source from the content-addressed store, hash-verified

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

Callers 1

inference.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected