-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for string data type #2478
Changes from all commits
1b2987b
7acc6f5
563d95f
f7e3461
9166c28
c9b48c4
ebd81ba
a05646b
653718a
61856c0
718335c
8097425
13cbada
e05641e
d1979a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,8 @@ std::vector<py::array> PyExecutionSessionBase::pyRun( | |
dtype = ONNX_TYPE_INT32; | ||
else if (py::isinstance<py::array_t<std::int64_t>>(inputPyArray)) | ||
dtype = ONNX_TYPE_INT64; | ||
// string type missing | ||
// else if (py::isinstance<py::array_t<const char *>>(inputPyArray)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chentong319 Here I added the missing string type which uses There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to comment this out for now until we get pybind11 support for it....I get the error There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also I was doing a bit more research and came across this link: pybind/pybind11#2337. I am pretty sure that it can prove to be helpful in our case with regards to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the first place we got assertion error. The link you provided is really helpful. |
||
// dtype = ONNX_TYPE_STRING; | ||
else if (py::isinstance<py::array_t<bool>>(inputPyArray)) | ||
dtype = ONNX_TYPE_BOOL; | ||
else if (py::isinstance<py::array_t<float_16>>(inputPyArray)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the missing
ONNX_TYPE_STRING
case forOMUnique.inc