-
Notifications
You must be signed in to change notification settings - Fork 30
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 INT64 Datatype Support for Shape Tensors in TensorRT Backend #91
Conversation
src/instance_state.cc
Outdated
auto it = request_shape_values.find(io_index); | ||
for (size_t idx = 1; idx < citr->second.nb_shape_values_; idx++) { | ||
if (it->second.GetDataType() == ShapeTensorDataType::INT32) { |
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 think the duplicate code can be reduced here. How about adding a function in the ShapeTensor class called GetDistance
which returns the distance between this shape tensor and the one that gets passed in the argument.
It can take care of data type handling.
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.
Moved this code to ShapeTensor::GetDistance()
method.
…sorrt_backend into spolisetty_dlis_6653
ShapeTensor
class to handle bothint32_t
andint64_t
shape tensors, using an internalchar
datatype buffer to store the shape tensor values.