You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converters including aten::select which use TensorRT's IShuffleLayer can cause compilation failures when run with empty Tensors (those having a 0 in one or more of their dimensions). These tensors are often used in models which take caches as arguments to their forward functions.
Are you using local sources or building from archives: local
Python version: 3.8.13
CUDA version: 11.7
Additional context
The bug originates from the fact that 0 has a special meaning as a placeholder in the setReshapeDimensions function of the IShuffleLayer. Specifically, unless explicitly specified, zero denotes the size of the previous-most-significant aligned dimension. Thus, improved input checking is needed to specify 0 as not being a placeholder when the input tensor is empty.
Bug Description
Converters including
aten::select
which use TensorRT'sIShuffleLayer
can cause compilation failures when run with empty Tensors (those having a 0 in one or more of their dimensions). These tensors are often used in models which take caches as arguments to theirforward
functions.The error displayed is:
To Reproduce
Steps to reproduce the behavior:
forward
function taking a single tensor, and invoketorch.select()
, returning the result.Expected behavior
The model should compile successfully.
Environment
python setup.py develop
Additional context
The bug originates from the fact that 0 has a special meaning as a placeholder in the
setReshapeDimensions
function of theIShuffleLayer
. Specifically, unless explicitly specified, zero denotes the size of the previous-most-significant aligned dimension. Thus, improved input checking is needed to specify 0 as not being a placeholder when the input tensor is empty.Fixing this bug would also address #1616.
The text was updated successfully, but these errors were encountered: