TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

fix: get_padded_shape_tensors can now handle dynamic pads

Open jiwoong-choi opened this issue 1 year ago • 0 comments

Description

Exported programs with dynamic shapes often include aten.constant_pad_nd with the argument pad containing mixture of int and TRTTensor values. This makes pad_before + pad_after fails in get_padded_shape_tensors.

Type of change

Please delete options that are not relevant and/or add your own.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • [x] My code follows the style guidelines of this project (You can use the linters)
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas and hacks
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have added tests to verify my fix or my feature
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] I have added the relevant labels to my PR in so that relevant reviewers are notified

jiwoong-choi avatar Aug 28 '24 12:08 jiwoong-choi