-
Notifications
You must be signed in to change notification settings - Fork 350
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
chore: dynamic shape support for pdist ops #3068
Conversation
@@ -417,20 +421,21 @@ def pdist( | |||
) -> Union[TRTTensor, Sequence[TRTTensor]]: | |||
shape = input.shape | |||
# Extend input from shape [N, D] to [N, 1, D] | |||
extend_input = impl.shuffle.reshape( | |||
extend_input = impl.unsqueeze.unsqueeze( |
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.
same functionality. it's changed to handle when all shapes are dynamic shape
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.
Thanks for the explanations. LGTM
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.
LGTM
Description
np.triu_indices(dim0, k=1) is implemented by index calculation in loop layer when dim0 is dynamic shape
Fixes # (issue)
Type of change
Please delete options that are not relevant and/or add your own.
Checklist: