Commit b344e42
[mlir-tensorrt] fix the way that layer names are set for TensorRT (#702)
This PR fixes the way that layer names are set for TensorRT.
~~Previously there was a bug in the `getUniqueName` function that caused
it to generate names like `name_0_1_2_3_4_5_6_7` instead of `name_7`.~~
This was not a problem upstream.
Also fixed the way that call sites are translated to layer names.
Previous if a `Location` tracked the entire stack trace (function `a`
calls `b` calls `c` calls `d` ), then the name would be set as
`a:LINE_NUMBER`. Now, the layer name is set to `b:LINE -> c:LINE ->
d:LINE` to provide enough information to identify where an layer comes
from.
Co-authored-by: Matthew Francis-Landau <[email protected]>1 parent d1a8447 commit b344e42
File tree
1 file changed
+22
-2
lines changed- mlir-tensorrt/tensorrt/lib/Target/TensorRTEncodingOpInterface
1 file changed
+22
-2
lines changedLines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
236 | 245 | | |
237 | 246 | | |
238 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
239 | 258 | | |
240 | 259 | | |
241 | 260 | | |
| |||
274 | 293 | | |
275 | 294 | | |
276 | 295 | | |
277 | | - | |
| 296 | + | |
| 297 | + | |
278 | 298 | | |
279 | 299 | | |
280 | 300 | | |
| |||
0 commit comments