phlippseitz
commited on
Commit
•
3fb2a58
1
Parent(s):
195ad46
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ onnx_model = InferenceSession(onnx_path, providers=['CPUExecutionProvider'])
|
|
23 |
|
24 |
context = 'ONNX is an open format to represent models. The benefits of using ONNX include interoperability of frameworks and hardware optimization.'
|
25 |
question = 'What are advantages of ONNX?'
|
26 |
-
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased')
|
27 |
|
28 |
inputs = tokenizer(question, context, padding=True, truncation=True, return_tensors='np')
|
29 |
inputs_int64 = {key: np.array(inputs[key], dtype=np.int64) for key in inputs}
|
|
|
23 |
|
24 |
context = 'ONNX is an open format to represent models. The benefits of using ONNX include interoperability of frameworks and hardware optimization.'
|
25 |
question = 'What are advantages of ONNX?'
|
26 |
+
tokenizer = AutoTokenizer.from_pretrained('UKP-SQuARE/bert-base-uncased-pf-squad_v2-onnx')
|
27 |
|
28 |
inputs = tokenizer(question, context, padding=True, truncation=True, return_tensors='np')
|
29 |
inputs_int64 = {key: np.array(inputs[key], dtype=np.int64) for key in inputs}
|