Closed ramchennuru closed 4 months ago
The same here.
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: token_type_ids for the following indices index: 1 Got: 1722 Expected: 512 Please fix either the inputs or the model.
@viktor-svirsky You should make sure that number of the input token is less than 512, which is the limit of onnx embedding model
Current Behavior
return self._sess.run(output_names, input_feed, run_options) onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: token_type_ids for the following indices index: 1 Got: 7863 Expected: 512 Please fix either the inputs or the model.
Expected Behavior
My Code Is: url = "https://classic.clinicaltrials.gov/ct2/show/NCT04239443" r = requests.get(url) pagesource = r.text pagesource=pagesource[:20000] question = "Figure out the publication Date/Citation date from the given page source:"+pagesource
Steps To Reproduce
No response
Environment
No response
Anything else?
No response