Skip to content
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

Fixes issues with NLP pipelines when data is not truncated #316

Merged
24 commits merged into from
Aug 8, 2022

Conversation

dagardner-nv
Copy link
Contributor

@dagardner-nv dagardner-nv commented Aug 4, 2022

  • Fixes type-os in TensorObject::read_element as suggested in description in [BUG] SID Crash with --use_cpp=True and --truncation=False #305
  • In cases where the length of the output results do not match the length of the data frame the seq_ids array is used to perform reduction of the rows. Such that if rows 5,6 & 7 of the output results map to row 5 in the dataframe, the max value of each row is stored in the response output.
  • Add new method MatxUtil::reduce_max to perform reduction.

fixes #305

Remove checks preventing slice operations when the length of the meta doesn't match the length of the tensors
…f they didn't we wouldn't have the seq_ids array to work with, replacing dead if branch with an assert
…nd offsets shouldn't match the inference offsets as this is a new array. Always use seq_ids to determine indexes of probs
@dagardner-nv dagardner-nv added non-breaking Non-breaking change improvement Improvement to existing functionality DO NOT MERGE PR should not be merged; see PR for details 2 - In Progress labels Aug 4, 2022
@dagardner-nv dagardner-nv requested a review from a team as a code owner August 4, 2022 00:04
@dagardner-nv dagardner-nv added 3 - Ready for Review and removed DO NOT MERGE PR should not be merged; see PR for details 2 - In Progress labels Aug 5, 2022
@dagardner-nv dagardner-nv changed the title Draft: Fixes issues with NLP pipelines when data is not truncated Fixes issues with NLP pipelines when data is not truncated Aug 5, 2022
@dagardner-nv
Copy link
Contributor Author

rerun tests

@dagardner-nv
Copy link
Contributor Author

rerun tests

Copy link
Contributor

@mdemoret-nv mdemoret-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 small changes

morpheus/_lib/include/morpheus/objects/tensor_object.hpp Outdated Show resolved Hide resolved
morpheus/_lib/include/morpheus/objects/tensor_object.hpp Outdated Show resolved Hide resolved
@dagardner-nv
Copy link
Contributor Author

rerun tests

@mdemoret-nv
Copy link
Contributor

@gpucibot merge

@ghost ghost merged commit 99d767f into nv-morpheus:branch-22.08 Aug 8, 2022
@dagardner-nv dagardner-nv deleted the david-sid-trunc branch February 12, 2024 23:21
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement to existing functionality non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] SID Crash with --use_cpp=True and --truncation=False
2 participants