[mlir-tensorrt] fix the way that layer names are set for TensorRT #702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the way that layer names are set for TensorRT.
Previously there was a bug in theThis was not a problem upstream.getUniqueNamefunction that caused it to generate names likename_0_1_2_3_4_5_6_7instead ofname_7.Also fixed the way that call sites are translated to layer names. Previous if a
Locationtracked the entire stack trace (functionacallsbcallsccallsd), then the name would be set asa:LINE_NUMBER. Now, the layer name is set tob:LINE -> c:LINE -> d:LINEto provide enough information to identify where an layer comes from.