TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

No importer registered for op: Tile

Open rgc183 opened this issue 6 years ago • 13 comments

I want to implement Tile operator in TensorRT 6. Because of limitation of hardware I cannot use TensorRT 7. I see that it is supported in 7, and Slice layer is been used along with Wrap mode set for implementation of Tile operator. However, 6 does not support Wrap mode for Slice layer so we cannot use the same method in 6. I am looking for any alternate way of doing this.

rgc183 avatar Jun 12 '20 17:06 rgc183

Same problem. Any idea how to work around?

dcmrlee avatar Jun 16 '20 05:06 dcmrlee

I want to implement Tile operator in TensorRT 6. Because of limitation of hardware I cannot use TensorRT 7. I see that it is supported in 7, and Slice layer is been used along with Wrap mode set for implementation of Tile operator. However, 6 does not support Wrap mode for Slice layer so we cannot use the same method in 6. I am looking for any alternate way of doing this.

Could you please point out how to implement tile in tensorRT7? I cannot find it in python api docs, many thanks !

yux94 avatar Jun 16 '20 12:06 yux94

Hi @rgc183

Because of limitation of hardware I cannot use TensorRT 7.

Can you elaborate on this? What hardware is limited?

TensorRT 7.1 was just released with support for Linux x86, Windows x86, and Jetson

rmccorm4 avatar Jun 23 '20 22:06 rmccorm4

@rmccorm4 Pegasus drive AGX only supports till trt 6

rgc183 avatar Jun 30 '20 01:06 rgc183

Same question. Need help. Please.

peterlee909 avatar Oct 13 '20 03:10 peterlee909

@rgc183 @peterlee909 thanks for reporting and sorry for the delay response. Could we modify the model to use slice and concatenation since there is no wrap mode in trt6?

ttyio avatar Nov 06 '20 01:11 ttyio

I will close since no response for more than 3 weeks, please reopen if you still have question, thanks!

ttyio avatar Jan 15 '21 08:01 ttyio

Hi, any workaround for this? Im also facing this issue, and no idea how to implement it for custom plugin. Im using it for driveworks4.0 @ttyio Thank you

mhmmdjafarg avatar Apr 12 '23 04:04 mhmmdjafarg

@rgc183 @peterlee909 thanks for reporting and sorry for the delay response. Could we modify the model to use slice and concatenation since there is no wrap mode in trt6?

Hi @ttyio could you elaborate more on this? Thanks

mhmmdjafarg avatar May 01 '23 07:05 mhmmdjafarg

Hi @mhmmdjafarg , is the repeats field constant in your model? if so we can use concatenation to create the tile output. Else, maybe we need first concatenation to a max output, then using slice to shrink the output to the correct size.

Take the https://github.com/onnx/onnx/find/main#tile example, A = [[1, 2], [3, 4]], B = [1, 2], tile(A, B) = [[1, 2, 1, 2], [3, 4, 3, 4]]. If we know B is constant, then just concat A, else we first concat A and output a max output, then use slice with shapeOf(A) * B as slice output size, thanks!

ttyio avatar May 01 '23 15:05 ttyio

Hi @ttyio , sorry for latrle reply i was working on another solution.

Yes my repeat is constant 1D array with value (1, 20, 1) and my input is 3d with dimension (32000, 1,32) So the output will have dimensions (32000, 20,32)

Could you please refer to the link docs or show me how? I'm new to this related concat and slice works

Thank you

mhmmdjafarg avatar Jun 10 '23 02:06 mhmmdjafarg

@mhmmdjafarg , what about add concat(axis=1) 19 times in your model? It's dirty but should works.

ttyio avatar Jun 13 '23 16:06 ttyio

Yes that will do, thank you!

However I ended up creating my own plugin based on TPAT Custom Plugin

mhmmdjafarg avatar Jun 16 '23 17:06 mhmmdjafarg